< Summary

Information
Class: ProjectTemplate.Web.Authentication.Options.ApplicationAuthenticationOptions
Assembly: ProjectTemplate.Web
File(s): /home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Web/Authentication/Options/ApplicationAuthenticationOptions.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 49
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Enabled()100%11100%
get_DefaultScheme()100%11100%
get_DefaultChallengeScheme()100%11100%
get_DefaultSignInScheme()100%11100%
get_Cookie()100%11100%
get_Providers()100%11100%
get_ClaimsTransformation()100%11100%

File(s)

/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Web/Authentication/Options/ApplicationAuthenticationOptions.cs

#LineLine coverage
 1using ProjectTemplate.Web.Authentication.Claims;
 2
 3namespace ProjectTemplate.Web.Authentication.Options;
 4
 5/// <summary>
 6/// Represents application-level authentication configuration.
 7/// </summary>
 8public 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>
 106018    public bool Enabled { get; set; }
 19
 20    /// <summary>
 21    /// Gets or sets the default authentication scheme.
 22    /// </summary>
 156423    public string DefaultScheme { get; set; } = "Cookies";
 24
 25    /// <summary>
 26    /// Gets or sets the default challenge scheme.
 27    /// </summary>
 141628    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>
 141433    public string DefaultSignInScheme { get; set; } = "Cookies";
 34
 35    /// <summary>
 36    /// Gets or sets cookie authentication options.
 37    /// </summary>
 273038    public ApplicationCookieAuthenticationOptions Cookie { get; set; } = new();
 39
 40    /// <summary>
 41    /// Gets or sets provider-specific authentication options.
 42    /// </summary>
 382243    public ApplicationAuthenticationProviderOptions Providers { get; set; } = new();
 44
 45    /// <summary>
 46    /// Gets or sets claims transformation and normalization options.
 47    /// </summary>
 147848    public ApplicationClaimsTransformationOptions ClaimsTransformation { get; set; } = new();
 49}