| | | 1 | | namespace ProjectTemplate.Web.Authentication.Options; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Represents common enablement settings for an external authentication provider. |
| | | 5 | | /// </summary> |
| | | 6 | | public sealed class ApplicationExternalAuthenticationProviderOptions |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Gets or sets a value indicating whether the external authentication provider is enabled. |
| | | 10 | | /// </summary> |
| | 2754 | 11 | | public bool Enabled { get; set; } |
| | | 12 | | |
| | | 13 | | /// <summary> |
| | | 14 | | /// Gets or sets the authentication scheme used for the current operation. |
| | | 15 | | /// </summary> |
| | 2856 | 16 | | public string Scheme { get; set; } = string.Empty; |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Gets or sets the display name associated with the authentication scheme. |
| | | 20 | | /// </summary> |
| | 2868 | 21 | | public string DisplayName { get; set; } = string.Empty; |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// Gets or sets the unique identifier for the client application. |
| | | 25 | | /// </summary> |
| | 2846 | 26 | | public string ClientId { get; set; } = string.Empty; |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// Gets or sets the client secret used for authentication with the external service. |
| | | 30 | | /// </summary> |
| | 2846 | 31 | | public string ClientSecret { get; set; } = string.Empty; |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Gets or sets the request path within the application's base path where the authentication middleware will |
| | | 35 | | /// receive the authentication response. |
| | | 36 | | /// </summary> |
| | 2850 | 37 | | public string CallbackPath { get; set; } = string.Empty; |
| | | 38 | | |
| | | 39 | | /// <summary> |
| | | 40 | | /// Gets or sets optional provider scopes requested during the external authentication challenge. |
| | | 41 | | /// </summary> |
| | 4100 | 42 | | public string[] Scopes { get; set; } = []; |
| | | 43 | | } |