1 write to TokenHandlers
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerOptions.cs (1)
34
TokenHandlers
= new List<TokenHandler> { _defaultTokenHandler };
29 references to TokenHandlers
Microsoft.AspNetCore.Authentication.JwtBearer (2)
JwtBearerHandler.cs (1)
103
foreach (var tokenHandler in Options.
TokenHandlers
)
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 (27)
JwtBearerTests.cs (1)
135
var tokenHandler = options.
TokenHandlers
.First() as JsonWebTokenHandler;
JwtBearerTests_Handler.cs (26)
125
var tokenHandler = options.
TokenHandlers
.First() as JsonWebTokenHandler;
183
o.
TokenHandlers
.Clear();
184
o.
TokenHandlers
.Insert(0, new InvalidTokenValidator());
269
options.
TokenHandlers
.Clear();
270
options.
TokenHandlers
.Add(new InvalidTokenValidator());
293
options.
TokenHandlers
.Clear();
294
options.
TokenHandlers
.Add(new InvalidTokenValidator(errorType));
314
options.
TokenHandlers
.Clear();
315
options.
TokenHandlers
.Add(new DetailedInvalidTokenValidator(errorType));
331
options.
TokenHandlers
.Clear();
332
options.
TokenHandlers
.Add(new InvalidTokenValidator(errorType));
347
options.
TokenHandlers
.Clear();
348
options.
TokenHandlers
.Add(new InvalidTokenValidator(typeof(SecurityTokenInvalidAudienceException)));
349
options.
TokenHandlers
.Add(new InvalidTokenValidator(typeof(SecurityTokenSignatureKeyNotFoundException)));
477
options.
TokenHandlers
.Clear();
478
options.
TokenHandlers
.Add(new BlobTokenValidator(JwtBearerDefaults.AuthenticationScheme));
500
options.
TokenHandlers
.Clear();
501
options.
TokenHandlers
.Add(new BlobTokenValidator("JWT", token =>
604
options.
TokenHandlers
.Clear();
605
options.
TokenHandlers
.Add(new BlobTokenValidator("JWT"));
636
options.
TokenHandlers
.Clear();
637
options.
TokenHandlers
.Add(new BlobTokenValidator("JWT"));
670
options.
TokenHandlers
.Clear();
671
options.
TokenHandlers
.Add(new BlobTokenValidator("JWT"));
702
options.
TokenHandlers
.Clear();
703
options.
TokenHandlers
.Add(new BlobTokenValidator("JWT"));