You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SecurityTokenValidators are obsolete and needs to be replaced with TokenHandlers
Noticed it because I need to use JwtServiceValidationHandler separately like this:
options.SecurityTokenValidators.Clear();
options.SecurityTokenValidators.Add(new JwtServiceValidationHandler(serviceProvider));
Added this for now to remove when addressed SecurityTokenValidators:
options.UseSecurityTokenValidators = true;
.NET make a warning here:
warning CS0618: 'JwtBearerOptions.SecurityTokenValidators' is obsolete: 'SecurityTokenValidators is no longer used by default. Use TokenHandlers instead. To continue using SecurityTokenValidators, set UseSecurityTokenValidators to true. See https://aka.ms/aspnetcore8/security-token-changes'
The text was updated successfully, but these errors were encountered:
SecurityTokenValidators are obsolete and needs to be replaced with TokenHandlers
Noticed it because I need to use JwtServiceValidationHandler separately like this:
options.SecurityTokenValidators.Clear();
options.SecurityTokenValidators.Add(new JwtServiceValidationHandler(serviceProvider));
Added this for now to remove when addressed SecurityTokenValidators:
options.UseSecurityTokenValidators = true;
.NET make a warning here:
warning CS0618: 'JwtBearerOptions.SecurityTokenValidators' is obsolete: 'SecurityTokenValidators is no longer used by default. Use TokenHandlers instead. To continue using SecurityTokenValidators, set UseSecurityTokenValidators to true. See https://aka.ms/aspnetcore8/security-token-changes'
The text was updated successfully, but these errors were encountered: