This repository has been archived by the owner. It is now read-only.
Auth0 OAuthProvider for ServiceStack
Pascal
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
content
Auth0-ServiceStack-OAuthProvider.nuspec
LICENSE
README.md
README.txt

README.md

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.