OAuth2Options class

Options for OAuth2 authentication.

public class OAuth2Options : OAuthOptions, IAuthenticationHostOptions, IOpenApiAuthenticationOptions

Public Members

name description
OAuth2Options() Initializes a new instance of the OAuth2Options class.
AuthenticationScheme { get; set; } Gets or sets the authentication scheme name.
ClaimPolicy { get; set; } Configuration for claim policy enforcement.
CookieOptions { get; } Options for cookie authentication.
CookieScheme { get; } Gets the cookie authentication scheme name.
Description { get; set; }  
DisplayName { get; set; }  
DocumentationId { get; set; }  
GlobalScheme { get; set; }  
Host { get; set; }  
Logger { get; set; }  
ApplyTo(…) Helper to copy values from a user-supplied OAuth2Options instance to the instance created by the framework inside AddOAuth(). 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