Class OpenIdConnectAuthenticationOptions
- Namespace
- ProjectTemplate.Web.Authentication.Providers.OpenIdConnect
- Assembly
- ProjectTemplate.Web.dll
Represents OpenID Connect authentication provider configuration.
public sealed class OpenIdConnectAuthenticationOptions
- Inheritance
-
OpenIdConnectAuthenticationOptions
- Inherited Members
Properties
Authority
Gets or sets the OpenID Connect authority URL.
public string Authority { get; set; }
Property Value
CallbackPath
Gets or sets the callback path used by the OpenID Connect handler.
public string CallbackPath { get; set; }
Property Value
ClientId
Gets or sets the OpenID Connect client ID.
public string ClientId { get; set; }
Property Value
ClientSecret
Gets or sets the OpenID Connect client secret.
public string ClientSecret { get; set; }
Property Value
DisplayName
Gets or sets the display name shown for the OpenID Connect provider.
public string DisplayName { get; set; }
Property Value
Enabled
Gets or sets a value indicating whether OpenID Connect authentication is enabled.
public bool Enabled { get; set; }
Property Value
ResponseType
Gets or sets the OpenID Connect response type.
public string ResponseType { get; set; }
Property Value
SaveTokens
Gets or sets a value indicating whether provider tokens are stored in the authentication cookie after sign-in.
public bool SaveTokens { get; set; }
Property Value
Remarks
Defaults to false. Saved tokens travel with the authentication cookie on every request, which grows the cookie and keeps access, identity, and refresh tokens on the client. Enable this only when the application calls downstream APIs with the provider's tokens and has a documented protection and lifetime strategy; prefer server-side token storage for anything longer-lived.
Scheme
Gets or sets the OpenID Connect authentication scheme.
public string Scheme { get; set; }
Property Value
Scopes
Gets or sets the requested OpenID Connect scopes.
public string[] Scopes { get; set; }
Property Value
- string[]