< Summary - Syki

Information
Class: Syki.Back.Features.Identity.CreateSsoConfiguration.CreateSsoConfigurationIn
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Identity/CreateSsoConfiguration/CreateSsoConfigurationIn.cs
Tag: 56_26538939494
Line coverage
0%
Covered lines: 0
Uncovered lines: 16
Coverable lines: 16
Total lines: 26
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_ProviderType()100%210%
get_Authority()100%210%
get_ClientId()100%210%
get_ClientSecret()100%210%
get_RequireSso()100%210%
GetExamples()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Identity/CreateSsoConfiguration/CreateSsoConfigurationIn.cs

#LineLine coverage
 1using Syki.Back.Domain.Enums;
 2
 3namespace Syki.Back.Features.Identity.CreateSsoConfiguration;
 4
 5public class CreateSsoConfigurationIn : IApiDto<CreateSsoConfigurationIn>
 6{
 07    public SsoProviderType ProviderType { get; set; }
 08    public string Authority { get; set; }
 09    public string ClientId { get; set; }
 010    public string ClientSecret { get; set; }
 11
 012    public bool RequireSso { get; set; }
 13
 14    public static IEnumerable<(string Name, CreateSsoConfigurationIn Value)> GetExamples() =>
 015    [
 016        ("Azure AD",
 017        new CreateSsoConfigurationIn
 018        {
 019            ProviderType = SsoProviderType.AzureAd,
 020            Authority = "https://login.microsoftonline.com/tenant-id/v2.0",
 021            ClientId = "00000000-0000-0000-0000-000000000000",
 022            ClientSecret = "client-secret-value",
 023            RequireSso = false,
 024        }),
 025    ];
 26}