< Summary - Syki

Information
Class: Syki.Back.Features.Cross.GetMfaKey.GetMfaKeyController
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Cross/GetMfaKey/GetMfaKeyController.cs
Tag: 4_16869239191
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 24
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
.ctor(...)100%11100%
Get()100%11100%

File(s)

/home/runner/work/syki/syki/Back/Features/Cross/GetMfaKey/GetMfaKeyController.cs

#LineLine coverage
 1namespace Syki.Back.Features.Cross.GetMfaKey;
 2
 3[ApiController, AuthBearer]
 4[EnableRateLimiting("Small")]
 185public class GetMfaKeyController(GetMfaKeyService service) : ControllerBase
 6{
 7    /// <summary>
 8    /// Chave MFA
 9    /// </summary>
 10    /// <remarks>
 11    /// Retorna a chave MFA do usuário. <br/>
 12    /// Ela é mostrada em tela via QR-Code, possibilitando a configuração do MFA.
 13    /// </remarks>
 14    [HttpGet("mfa/key")]
 15    [SwaggerResponseExample(200, typeof(ResponseExamples))]
 16    public async Task<IActionResult> Get()
 17    {
 1818        var key = await service.Get(User.Id);
 19
 1820        return Ok(key);
 1821    }
 22}
 23
 24internal class ResponseExamples : ExamplesProvider<GetMfaKeyOut>;