Skip to content

blinard/azurefunctions-auth0

Repository files navigation

azurefunctions-auth0

Usage:

using AzureFunctions.Security.Auth0;

static Auth0ApiSettings apiSettings = 
    new Auth0ApiSettings()
    {
        Issuer = appSettings.AuthIssuer,
        Audience = appSettings.AuthAudience
    };

static IConfigurationManager<OpenIdConnectConfiguration> configMgr = 
    ConfigurationManagerFactory.GetConfigurationManager(apiSettings);

IAuthenticationService authService = new AuthenticationService(apiSettings, configMgr);

var claimsPrincipal = await authService.ValidateTokenAsync(request.GetAuthToken());

Credit:

https://liftcodeplay.com/2017/11/25/validating-auth0-jwt-tokens-in-azure-functions-aka-how-to-use-auth0-with-azure-functions/

https://blog.wille-zone.de/post/secure-azure-functions-with-jwt-token/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages