JwtAuthOptions class

Options for JWT-based authentication.

public class JwtAuthOptions : JwtBearerOptions, IAuthenticationHostOptions, IClaimsCommonOptions, 
    IOpenApiAuthenticationOptions

Public Members

name description
JwtAuthOptions() The default constructor.
AllowInsecureHttp { get; set; } If true, allows cookie authentication over insecure HTTP connections.
ClaimPolicy { get; set; } Configuration for claim policy enforcement.
ClaimPolicyConfig { get; set; } Gets or sets the claim policy configuration.
Description { get; set; }  
DisplayName { get; set; }  
DocumentationId { get; set; }  
GlobalScheme { get; set; }  
Host { get; set; }  
IssueClaims { get; set; } After credentials are valid, this is called to add extra Claims. Parameters: HttpContext, username → IEnumerable of extra claims.
IssueClaimsCodeSettings { get; set; } Settings for the claims issuing code, if using a script.
Logger { get; set; }  
ValidationParameters { get; set; } Gets or sets the token validation parameters.
ApplyTo(…) Helper to copy values from a user-supplied JwtBearerOptions instance to the instance created by the framework inside AddJwtBearer(). Reassigning the local variable (opts = source) would not work because only the local reference changes – the framework keeps the original instance. (2 methods)

See Also