< Summary - Syki

Information
Class: Syki.Back.Features.Identity.CheckSsoAvailability.CheckSsoAvailabilityOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Identity/CheckSsoAvailability/CheckSsoAvailabilityOut.cs
Tag: 97_27801654829
Line coverage
0%
Covered lines: 0
Uncovered lines: 26
Coverable lines: 26
Total lines: 46
Line coverage: 0%
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_SsoEnabled()100%210%
get_SsoRequired()100%210%
get_ProviderType()100%210%
GetExamples()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Identity/CheckSsoAvailability/CheckSsoAvailabilityOut.cs

#LineLine coverage
 1namespace Syki.Back.Features.Identity.CheckSsoAvailability;
 2
 3public class CheckSsoAvailabilityOut : IApiDto<CheckSsoAvailabilityOut>
 4{
 5    /// <summary>
 6    /// Whether SSO is enabled for this email domain.
 7    /// </summary>
 08    public bool SsoEnabled { get; set; }
 9
 10    /// <summary>
 11    /// Whether SSO is required (password login is not allowed).
 12    /// Only relevant when SsoEnabled is true.
 13    /// </summary>
 014    public bool SsoRequired { get; set; }
 15
 16    /// <summary>
 17    /// The SSO provider type (e.g., AzureAd, GoogleWorkspace).
 18    /// Only present when SsoEnabled is true.
 19    /// </summary>
 020    public SsoProviderType? ProviderType { get; set; }
 21
 22    public static IEnumerable<(string Name, CheckSsoAvailabilityOut Value)> GetExamples() =>
 023    [
 024        ("SSO Enabled",
 025        new CheckSsoAvailabilityOut
 026        {
 027            SsoEnabled = true,
 028            SsoRequired = false,
 029            ProviderType = SsoProviderType.AzureAd,
 030        }),
 031        ("SSO Required",
 032        new CheckSsoAvailabilityOut
 033        {
 034            SsoEnabled = true,
 035            SsoRequired = true,
 036            ProviderType = SsoProviderType.GoogleWorkspace,
 037        }),
 038        ("SSO Not Available",
 039        new CheckSsoAvailabilityOut
 040        {
 041            SsoEnabled = false,
 042            SsoRequired = false,
 043            ProviderType = null,
 044        }),
 045    ];
 46}