-
-
Save radzionc/52d651a66beb28c2d2a2dfceaae2cf6f 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
var tokenValidationParameters = new TokenValidationParameters() | |
{ | |
RequireExpirationTime = true, | |
ValidateIssuer = false, | |
ValidateAudience = false, | |
IssuerSigningKey = new SymmetricSecurityKey(Convert.FromBase64String(SecretKey)) | |
}; | |
app.UseJwtBearerAuthentication(new JwtBearerOptions | |
{ | |
AutomaticAuthenticate = true, | |
AutomaticChallenge = true, | |
TokenValidationParameters = tokenValidationParameters | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment