< Summary

Information
Class: Syki.Back.Auth.CrossLoginAuthReqHandler
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Auth/CrossLoginAuthRequirement.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 16
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
HandleRequirementAsync(...)100%22100%

File(s)

/home/runner/work/syki/syki/Back/Auth/CrossLoginAuthRequirement.cs

#LineLine coverage
 1namespace Syki.Back.Auth;
 2
 3/// <summary>
 4/// Política de acesso à feature de "Login Cruzado".
 5/// </summary>
 6public class CrossLoginAuthRequirement : IAuthorizationRequirement { }
 7
 18public class CrossLoginAuthReqHandler(FeaturesSettings settings) : AuthorizationHandler<CrossLoginAuthRequirement>
 9{
 10    protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, CrossLoginAuthRequirement requir
 11    {
 1212        if (settings.CrossLogin) context.Succeed(requirement);
 13
 614        return Task.CompletedTask;
 15    }
 16}