< Summary - Syki

Information
Class: Syki.Back.Configs.AuthenticationConfigs
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Configs/AuthenticationConfigs.cs
Tag: 56_26538939494
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 15
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
AddAuthenticationConfigs(...)100%11100%

File(s)

/home/runner/work/syki/syki/Back/Configs/AuthenticationConfigs.cs

#LineLine coverage
 1using Syki.Back.Auth.Schemes;
 2
 3namespace Syki.Back.Configs;
 4
 5public static class AuthenticationConfigs
 6{
 7    public static void AddAuthenticationConfigs(this WebApplicationBuilder builder)
 8    {
 29        builder.Services
 210            .AddAuthentication(options => options.DefaultChallengeScheme = JwtBearerScheme.Name)
 211            .AddJwtBearerScheme(builder.Configuration)
 212            .AddSsoTempCookieScheme()
 213            .AddSsoOpenIdConnectScheme();
 214    }
 15}