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)
179/// 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)
129var jwtHandler = options.SecurityTokenValidators.First() as JwtSecurityTokenHandler; 150var jwtHandler = options.SecurityTokenValidators.First() as JwtSecurityTokenHandler; 194o.SecurityTokenValidators.Clear(); 195o.SecurityTokenValidators.Insert(0, new InvalidTokenValidator()); 284options.SecurityTokenValidators.Clear(); 285options.SecurityTokenValidators.Add(new InvalidTokenValidator()); 311options.SecurityTokenValidators.Clear(); 312options.SecurityTokenValidators.Add(new InvalidTokenValidator(errorType)); 335options.SecurityTokenValidators.Clear(); 336options.SecurityTokenValidators.Add(new DetailedInvalidTokenValidator(errorType)); 355options.SecurityTokenValidators.Clear(); 356options.SecurityTokenValidators.Add(new InvalidTokenValidator(errorType)); 374options.SecurityTokenValidators.Clear(); 375options.SecurityTokenValidators.Add(new InvalidTokenValidator(typeof(SecurityTokenInvalidAudienceException))); 376options.SecurityTokenValidators.Add(new InvalidTokenValidator(typeof(SecurityTokenSignatureKeyNotFoundException))); 509options.SecurityTokenValidators.Clear(); 510options.SecurityTokenValidators.Add(new BlobTokenValidator(JwtBearerDefaults.AuthenticationScheme)); 535options.SecurityTokenValidators.Clear(); 536options.SecurityTokenValidators.Add(new BlobTokenValidator("JWT", token => 644options.SecurityTokenValidators.Clear(); 645options.SecurityTokenValidators.Add(new BlobTokenValidator("JWT")); 679options.SecurityTokenValidators.Clear(); 680options.SecurityTokenValidators.Add(new BlobTokenValidator("JWT")); 716options.SecurityTokenValidators.Clear(); 717options.SecurityTokenValidators.Add(new BlobTokenValidator("JWT")); 751options.SecurityTokenValidators.Clear(); 752options.SecurityTokenValidators.Add(new BlobTokenValidator("JWT"));
JwtBearerTests_Handler.cs (2)
120var jwtHandler = options.SecurityTokenValidators.First() as JwtSecurityTokenHandler; 141var jwtHandler = options.SecurityTokenValidators.First() as JwtSecurityTokenHandler;