Created
November 19, 2018 07:05
-
-
Save GeorgDangl/04e18a8d24e3c22c0fe50e7f1e4881d6 to your computer and use it in GitHub Desktop.
Multiple JWT authorities in ASP.NET Core
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services.AddAuthentication() | |
.AddJwtBearer(AuthenticationConstants.JWT_BASE_SCHEME, jwtBearerOptions => | |
{ | |
jwtBearerOptions.Authority = JwtBaseUri; | |
jwtBearerOptions.Audience = RequiredScope; | |
}) | |
.AddJwtBearer(AuthenticationConstants.JWT_FALLBACK_SCHEME, jwtBearerOptions => | |
{ | |
jwtBearerOptions.Authority = JwtFallbackBaseUri; | |
jwtBearerOptions.Audience = RequiredScope; | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment