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