Created
April 28, 2020 08:12
-
-
Save xtrmstep/3ec8db0e3f4e094be1812a120ea2b65a to your computer and use it in GitHub Desktop.
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
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