< Summary

Information
Class: ProjectTemplate.Web.Authentication.Options.ApplicationExternalAuthenticationProviderOptions
Assembly: ProjectTemplate.Web
File(s): /home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Web/Authentication/Options/ApplicationExternalAuthenticationProviderOptions.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 43
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_Scheme()100%11100%
get_DisplayName()100%11100%
get_ClientId()100%11100%
get_ClientSecret()100%11100%
get_CallbackPath()100%11100%
get_Scopes()100%11100%

File(s)

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

#LineLine coverage
 1namespace ProjectTemplate.Web.Authentication.Options;
 2
 3/// <summary>
 4/// Represents common enablement settings for an external authentication provider.
 5/// </summary>
 6public sealed class ApplicationExternalAuthenticationProviderOptions
 7{
 8    /// <summary>
 9    /// Gets or sets a value indicating whether the external authentication provider is enabled.
 10    /// </summary>
 275411    public bool Enabled { get; set; }
 12
 13    /// <summary>
 14    /// Gets or sets the authentication scheme used for the current operation.
 15    /// </summary>
 285616    public string Scheme { get; set; } = string.Empty;
 17
 18    /// <summary>
 19    /// Gets or sets the display name associated with the authentication scheme.
 20    /// </summary>
 286821    public string DisplayName { get; set; } = string.Empty;
 22
 23    /// <summary>
 24    /// Gets or sets the unique identifier for the client application.
 25    /// </summary>
 284626    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>
 284631    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>
 285037    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>
 410042    public string[] Scopes { get; set; } = [];
 43}