Class OAuthOptions
- Namespace
- Builvero.Application.Options
- Assembly
- Builvero.Application.dll
OAuth provider configuration options for third-party authentication.
public sealed class OAuthOptions
- Inheritance
-
OAuthOptions
- Inherited Members
Remarks
All properties are optional - OAuth is only enabled if credentials are provided for a specific provider.
Configured in appsettings.json under the "OAuth" section.
Supported providers: Google, LinkedIn. Each provider requires a ClientId and ClientSecret obtained from the respective OAuth provider's developer console.
Fields
SectionName
Configuration section name for OAuth options in appsettings.json.
public const string SectionName = "OAuth"
Field Value
- string
- OAuth provider configuration options for third-party authentication.
Properties
Gets or sets the Google OAuth configuration options.
public GoogleOAuthOptions? Google { get; init; }
Property Value
- GoogleOAuthOptions
- OAuth provider configuration options for third-party authentication.
Remarks
If null, Google OAuth authentication is disabled. When configured, users can sign in using their Google accounts. Requires ClientId and ClientSecret from Google Cloud Console.
Gets or sets the LinkedIn OAuth configuration options.
public LinkedInOAuthOptions? LinkedIn { get; init; }
Property Value
- LinkedInOAuthOptions
- OAuth provider configuration options for third-party authentication.
Remarks
If null, LinkedIn OAuth authentication is disabled. When configured, users can sign in using their LinkedIn accounts. Requires ClientId and ClientSecret from LinkedIn Developer Portal.