Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xtrmstep/3ec8db0e3f4e094be1812a120ea2b65a to your computer and use it in GitHub Desktop.
Save xtrmstep/3ec8db0e3f4e094be1812a120ea2b65a to your computer and use it in GitHub Desktop.
public void ConfigureServices(...) {
services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(o => {
var validator = new JwtTokenValidator(...);
o.SecurityTokenValidators.Add(validator);
});
services.AddAuthorization();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment