< Summary

Information
Class: ProjectTemplate.Web.Authentication.Options.ApplicationAuthenticationProviderOptions
Assembly: ProjectTemplate.Web
File(s): /home/runner/work/NetCoreApplicationTemplate/NetCoreApplicationTemplate/src/ProjectTemplate.Web/Authentication/Options/ApplicationAuthenticationProviderOptions.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 35
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_OpenIdConnect()100%11100%
get_Saml2()100%11100%
get_Microsoft()100%11100%
get_Google()100%11100%
get_GitHub()100%11100%

File(s)

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

#LineLine coverage
 1using ProjectTemplate.Web.Authentication.Providers.OpenIdConnect;
 2using ProjectTemplate.Web.Authentication.Providers.Saml2;
 3
 4namespace ProjectTemplate.Web.Authentication.Options;
 5
 6/// <summary>
 7/// Represents provider-specific authentication configuration.
 8/// </summary>
 9public sealed class ApplicationAuthenticationProviderOptions
 10{
 11    /// <summary>
 12    /// Gets or sets OpenID Connect provider options.
 13    /// </summary>
 191414    public OpenIdConnectAuthenticationOptions OpenIdConnect { get; set; } = new();
 15
 16    /// <summary>
 17    /// Gets or sets SAML2 provider options.
 18    /// </summary>
 191419    public Saml2AuthenticationOptions Saml2 { get; set; } = new();
 20
 21    /// <summary>
 22    /// Gets or sets Microsoft provider options.
 23    /// </summary>
 191424    public ApplicationExternalAuthenticationProviderOptions Microsoft { get; set; } = new();
 25
 26    /// <summary>
 27    /// Gets or sets Google provider options.
 28    /// </summary>
 191229    public ApplicationExternalAuthenticationProviderOptions Google { get; set; } = new();
 30
 31    /// <summary>
 32    /// Gets or sets the options used to configure GitHub as an external authentication provider.
 33    /// </summary>
 191234    public ApplicationExternalAuthenticationProviderOptions GitHub { get; set; } = new();
 35}