Created
July 5, 2020 01:35
-
-
Save xximjasonxx/a79b8a8fd4b91d4332f1a860ee5016ed to your computer and use it in GitHub Desktop.
This file contains 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(options => | |
{ | |
options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; | |
options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; | |
}).AddJwtBearer(options => | |
{ | |
options.Authority = Configuration["Auth0:Domain"]; | |
options.Audience = Configuration["Auth0:Audience"]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment