Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created July 5, 2020 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xximjasonxx/a79b8a8fd4b91d4332f1a860ee5016ed to your computer and use it in GitHub Desktop.
Save xximjasonxx/a79b8a8fd4b91d4332f1a860ee5016ed to your computer and use it in GitHub Desktop.
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