1 write to SecurityTokenValidators
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerOptions.cs (1)
32
SecurityTokenValidators
= new List<ISecurityTokenValidator> { _defaultHandler };
31 references to SecurityTokenValidators
Microsoft.AspNetCore.Authentication.JwtBearer (2)
JwtBearerHandler.cs (1)
130
foreach (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)
130
var jwtHandler = options.
SecurityTokenValidators
.First() as JwtSecurityTokenHandler;
151
var jwtHandler = options.
SecurityTokenValidators
.First() as JwtSecurityTokenHandler;
195
o.
SecurityTokenValidators
.Clear();
196
o.
SecurityTokenValidators
.Insert(0, new InvalidTokenValidator());
285
options.
SecurityTokenValidators
.Clear();
286
options.
SecurityTokenValidators
.Add(new InvalidTokenValidator());
312
options.
SecurityTokenValidators
.Clear();
313
options.
SecurityTokenValidators
.Add(new InvalidTokenValidator(errorType));
336
options.
SecurityTokenValidators
.Clear();
337
options.
SecurityTokenValidators
.Add(new DetailedInvalidTokenValidator(errorType));
356
options.
SecurityTokenValidators
.Clear();
357
options.
SecurityTokenValidators
.Add(new InvalidTokenValidator(errorType));
375
options.
SecurityTokenValidators
.Clear();
376
options.
SecurityTokenValidators
.Add(new InvalidTokenValidator(typeof(SecurityTokenInvalidAudienceException)));
377
options.
SecurityTokenValidators
.Add(new InvalidTokenValidator(typeof(SecurityTokenSignatureKeyNotFoundException)));
510
options.
SecurityTokenValidators
.Clear();
511
options.
SecurityTokenValidators
.Add(new BlobTokenValidator(JwtBearerDefaults.AuthenticationScheme));
536
options.
SecurityTokenValidators
.Clear();
537
options.
SecurityTokenValidators
.Add(new BlobTokenValidator("JWT", token =>
645
options.
SecurityTokenValidators
.Clear();
646
options.
SecurityTokenValidators
.Add(new BlobTokenValidator("JWT"));
680
options.
SecurityTokenValidators
.Clear();
681
options.
SecurityTokenValidators
.Add(new BlobTokenValidator("JWT"));
717
options.
SecurityTokenValidators
.Clear();
718
options.
SecurityTokenValidators
.Add(new BlobTokenValidator("JWT"));
752
options.
SecurityTokenValidators
.Clear();
753
options.
SecurityTokenValidators
.Add(new BlobTokenValidator("JWT"));
JwtBearerTests_Handler.cs (2)
120
var jwtHandler = options.
SecurityTokenValidators
.First() as JwtSecurityTokenHandler;
141
var jwtHandler = options.
SecurityTokenValidators
.First() as JwtSecurityTokenHandler;