WsFederationOptions.UseSecurityTokenHandlers Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets whether TokenHandlers or SecurityTokenHandlers will be used to validate the inbound token.
public bool UseSecurityTokenHandlers { get; set; }
member this.UseSecurityTokenHandlers : bool with get, set
Public Property UseSecurityTokenHandlers As Boolean
Property Value
Remarks
The advantages of using the TokenHandlers are:
There is an Async model.
The default token handler for JsonWebTokens is a JsonWebTokenHandler which is faster than a JwtSecurityTokenHandler.
There is an ability to make use of a Last-Known-Good model for metadata that protects applications when metadata is published with errors.
SecurityTokenHandlers can be used when SecurityToken needs a JwtSecurityToken when the security token is a JWT. When using TokenHandlers, SecurityToken will be a JsonWebToken when the security token is a JWT.