Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void ConfigureServices(IServiceCollection services)
- {
- services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
- .AddJwtBearer(options =>
- {
- options.TokenValidationParameters = new TokenValidationParameters
- {
- ValidateLifetime = true,
- ValidateIssuerSigningKey = true,
- IssuerSigningKey = new SymmetricSecurityKey(
- System.Convert.FromBase64String(_configuration["ApproovTokenSecret"]))
- };
- });
- services.AddMvc();
- }
Add Comment
Please, Sign In to add comment