< Summary

Information
Class: ProjectTemplate.Web.Authentication.Providers.OpenIdConnect.OpenIdConnectAuthenticationOptions
Assembly: ProjectTemplate.Web
File(s): /home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Web/Authentication/Providers/OpenIdConnect/TemplateOpenIdConnectAuthenticationOptions.cs
Line coverage
100%
Covered lines: 15
Uncovered lines: 0
Coverable lines: 15
Total lines: 62
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_Authority()100%11100%
get_ClientId()100%11100%
get_ClientSecret()100%11100%
get_CallbackPath()100%11100%
get_ResponseType()100%11100%
get_SaveTokens()100%11100%
get_Scopes()100%11100%
.ctor()100%11100%

File(s)

/home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Web/Authentication/Providers/OpenIdConnect/TemplateOpenIdConnectAuthenticationOptions.cs

#LineLine coverage
 1namespace ProjectTemplate.Web.Authentication.Providers.OpenIdConnect;
 2
 3/// <summary>
 4/// Represents OpenID Connect authentication provider configuration.
 5/// </summary>
 6public sealed class OpenIdConnectAuthenticationOptions
 7{
 8    /// <summary>
 9    /// Gets or sets a value indicating whether OpenID Connect authentication is enabled.
 10    /// </summary>
 91211    public bool Enabled { get; set; }
 12
 13    /// <summary>
 14    /// Gets or sets the OpenID Connect authentication scheme.
 15    /// </summary>
 94016    public string Scheme { get; set; } = "OpenIdConnect";
 17
 18    /// <summary>
 19    /// Gets or sets the display name shown for the OpenID Connect provider.
 20    /// </summary>
 94421    public string DisplayName { get; set; } = "OpenID Connect";
 22
 23    /// <summary>
 24    /// Gets or sets the OpenID Connect authority URL.
 25    /// </summary>
 94026    public string Authority { get; set; } = string.Empty;
 27
 28    /// <summary>
 29    /// Gets or sets the OpenID Connect client ID.
 30    /// </summary>
 94031    public string ClientId { get; set; } = string.Empty;
 32
 33    /// <summary>
 34    /// Gets or sets the OpenID Connect client secret.
 35    /// </summary>
 93036    public string ClientSecret { get; set; } = string.Empty;
 37
 38    /// <summary>
 39    /// Gets or sets the callback path used by the OpenID Connect handler.
 40    /// </summary>
 94041    public string CallbackPath { get; set; } = "/signin-oidc";
 42
 43    /// <summary>
 44    /// Gets or sets the OpenID Connect response type.
 45    /// </summary>
 94046    public string ResponseType { get; set; } = "code";
 47
 48    /// <summary>
 49    /// Gets or sets a value indicating whether tokens should be saved after authentication.
 50    /// </summary>
 93851    public bool SaveTokens { get; set; } = true;
 52
 53    /// <summary>
 54    /// Gets or sets the requested OpenID Connect scopes.
 55    /// </summary>
 87456    public string[] Scopes { get; set; } =
 49257    [
 49258        "openid",
 49259        "profile",
 49260        "email"
 49261    ];
 62}