| | | 1 | | using ProjectTemplate.Web.Authentication.Claims; |
| | | 2 | | |
| | | 3 | | namespace ProjectTemplate.Web.Authentication.Options; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Represents application-level authentication configuration. |
| | | 7 | | /// </summary> |
| | | 8 | | public sealed class ApplicationAuthenticationOptions |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Configuration section name for authentication settings. |
| | | 12 | | /// </summary> |
| | | 13 | | public const string SectionName = "ProjectTemplate:Authentication"; |
| | | 14 | | |
| | | 15 | | /// <summary> |
| | | 16 | | /// Gets or sets a value indicating whether authentication is enabled. |
| | | 17 | | /// </summary> |
| | 1060 | 18 | | public bool Enabled { get; set; } |
| | | 19 | | |
| | | 20 | | /// <summary> |
| | | 21 | | /// Gets or sets the default authentication scheme. |
| | | 22 | | /// </summary> |
| | 1564 | 23 | | public string DefaultScheme { get; set; } = "Cookies"; |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// Gets or sets the default challenge scheme. |
| | | 27 | | /// </summary> |
| | 1416 | 28 | | public string DefaultChallengeScheme { get; set; } = "Cookies"; |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// Gets or sets the default sign-in scheme used by external authentication providers. |
| | | 32 | | /// </summary> |
| | 1414 | 33 | | public string DefaultSignInScheme { get; set; } = "Cookies"; |
| | | 34 | | |
| | | 35 | | /// <summary> |
| | | 36 | | /// Gets or sets cookie authentication options. |
| | | 37 | | /// </summary> |
| | 2730 | 38 | | public ApplicationCookieAuthenticationOptions Cookie { get; set; } = new(); |
| | | 39 | | |
| | | 40 | | /// <summary> |
| | | 41 | | /// Gets or sets provider-specific authentication options. |
| | | 42 | | /// </summary> |
| | 3822 | 43 | | public ApplicationAuthenticationProviderOptions Providers { get; set; } = new(); |
| | | 44 | | |
| | | 45 | | /// <summary> |
| | | 46 | | /// Gets or sets claims transformation and normalization options. |
| | | 47 | | /// </summary> |
| | 1478 | 48 | | public ApplicationClaimsTransformationOptions ClaimsTransformation { get; set; } = new(); |
| | | 49 | | } |