1 write to SecurityTokenValidators
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerOptions.cs (1)
32SecurityTokenValidators = new List<ISecurityTokenValidator> { _defaultHandler };
31 references to SecurityTokenValidators
Microsoft.AspNetCore.Authentication.JwtBearer (2)
JwtBearerHandler.cs (1)
130foreach (var validator in Options.SecurityTokenValidators)
JwtBearerOptions.cs (1)
178/// Gets or sets whether <see cref="TokenHandlers"/> or <see cref="SecurityTokenValidators"/> will be used to validate the inbound token.
Microsoft.AspNetCore.Authentication.Test (29)
JwtBearerTests.cs (27)
130var jwtHandler = options.SecurityTokenValidators.First() as JwtSecurityTokenHandler; 151var jwtHandler = options.SecurityTokenValidators.First() as JwtSecurityTokenHandler; 195o.SecurityTokenValidators.Clear(); 196o.SecurityTokenValidators.Insert(0, new InvalidTokenValidator()); 285options.SecurityTokenValidators.Clear(); 286options.SecurityTokenValidators.Add(new InvalidTokenValidator()); 312options.SecurityTokenValidators.Clear(); 313options.SecurityTokenValidators.Add(new InvalidTokenValidator(errorType)); 336options.SecurityTokenValidators.Clear(); 337options.SecurityTokenValidators.Add(new DetailedInvalidTokenValidator(errorType)); 356options.SecurityTokenValidators.Clear(); 357options.SecurityTokenValidators.Add(new InvalidTokenValidator(errorType)); 375options.SecurityTokenValidators.Clear(); 376options.SecurityTokenValidators.Add(new InvalidTokenValidator(typeof(SecurityTokenInvalidAudienceException))); 377options.SecurityTokenValidators.Add(new InvalidTokenValidator(typeof(SecurityTokenSignatureKeyNotFoundException))); 510options.SecurityTokenValidators.Clear(); 511options.SecurityTokenValidators.Add(new BlobTokenValidator(JwtBearerDefaults.AuthenticationScheme)); 536options.SecurityTokenValidators.Clear(); 537options.SecurityTokenValidators.Add(new BlobTokenValidator("JWT", token => 645options.SecurityTokenValidators.Clear(); 646options.SecurityTokenValidators.Add(new BlobTokenValidator("JWT")); 680options.SecurityTokenValidators.Clear(); 681options.SecurityTokenValidators.Add(new BlobTokenValidator("JWT")); 717options.SecurityTokenValidators.Clear(); 718options.SecurityTokenValidators.Add(new BlobTokenValidator("JWT")); 752options.SecurityTokenValidators.Clear(); 753options.SecurityTokenValidators.Add(new BlobTokenValidator("JWT"));
JwtBearerTests_Handler.cs (2)
120var jwtHandler = options.SecurityTokenValidators.First() as JwtSecurityTokenHandler; 141var jwtHandler = options.SecurityTokenValidators.First() as JwtSecurityTokenHandler;