Class OAuth2Configuration
- Namespace
- OpenSettings.Configurations
- Assembly
- OpenSettings.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 OAuth2Configuration
- Inheritance
-
OAuth2Configuration
- 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
Remarks
The default value is 'false
'.
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.
public string ClientId { get; set; }
Property Value
ClientSecret
Gets or sets the client secret used to authenticate with the OAuth2 provider.
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
Remarks
The default value is 'false
'.
SignedOutRedirectUri
Gets or sets the URI to redirect to after the user is signed out.
public string SignedOutRedirectUri { get; set; }
Property Value
Remarks
The default value is 'settings
'.