Class OAuth2Options
- Namespace
- OpenSettings.AspNetCore
- Assembly
- OpenSettings.AspNetCore.Spa.dll
Represents the configuration options for OAuth2 authentication. This class holds the necessary settings for connecting to an OAuth2 provider and handling authentication.
public class OAuth2Options
- Inheritance
-
OAuth2Options
- Inherited Members
Properties
AllowOfflineAccess
Gets or sets a value indicating whether offline access is allowed. If set to true, offline access tokens can be obtained.
public bool AllowOfflineAccess { get; set; }
Property Value
Authority
Gets or sets the authority URL for the OAuth2 provider. The value is trimmed of any trailing slashes.
public string Authority { get; set; }
Property Value
ClientId
Gets or sets the client id used to authenticate with the OAuth2 provider. This property is ignored during JSON serialization.
[JsonIgnore]
public string ClientId { get; set; }
Property Value
ClientSecret
Gets or sets the client secret used to authenticate with the OAuth2 provider. This property is ignored during JSON serialization.
[JsonIgnore]
public string ClientSecret { get; set; }
Property Value
IsActive
Gets or sets a value indicating whether the OAuth2 configuration is active. If true, the OAuth2 authentication is enabled.
public bool IsActive { get; set; }
Property Value
SignedOutRedirectUri
Gets or sets the URI to redirect to after the user is signed out.
The default value is 'settings
'.
public string SignedOutRedirectUri { get; set; }