auth0 / auth0-servicestack-oauthprovider

Auth0 OAuthProvider for ServiceStack
MIT License
0 stars 2 forks source link

Auth0 OAuthProvider for ServiceStack.

Installation

Install-Package Auth0-ServiceStack-OAuthProvider

Usage

Open Web.config file and set the Auth0 settings:

<add key="oauth.auth0.AppId" value="YOUR CLIENT ID" />
<add key="oauth.auth0.AppSecret" value="YOUR CLIENT SECRET" />
<add key="oauth.auth0.OAuthServerUrl" value="YOUR NAMESPACE: https://{tenant}.auth0.com" />

and add the following to your App_Start\AppHost.cs file under the ConfigureAuth method:

var appSettings = new AppSettings();

// Default route: /auth/{provider}
Plugins.Add(new AuthFeature(
    () => new Auth0UserSession(),
    new IAuthProvider[] {
        new Auth0Provider(appSettings, appSettings.GetString("oauth.auth0.OAuthServerUrl"))
    }));

Documentation

For information about how to use ServiceStack with auth0 visit our documentation page.

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.

Author

Auth0

License

This project is licensed under the MIT license. See the LICENSE file for more info.