< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Output.VerifyTwoFactorAuthCommandOutput
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Output/VerifyTwoFactorAuthCommandOutput.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 34
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 4
Fully covered methods: 4
Total methods: 4
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Token()100%11100%
get_ExpiresAt()100%11100%
get_EmailVerified()100%11100%
get_ProcessingRestricted()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Output/VerifyTwoFactorAuthCommandOutput.cs

#LineLine coverage
 1using ArturRios.Mediator.Command;
 2
 3namespace ArturRios.Heimdall.Command.Output;
 4
 5/// <summary>
 6///     Result of <see cref="Input.VerifyTwoFactorAuthCommand" /> (UC-38): the full authentication
 7///     token issued once a second factor checked out (FR-2F-09) — the same shape
 8///     <see cref="LoginCommandOutput" />'s direct-login success case returns, since a UC-38 login
 9///     ends exactly like an ungated one.
 10/// </summary>
 11public class VerifyTwoFactorAuthCommandOutput : CommandOutput
 12{
 13    /// <summary>The signed authentication token, to be sent as a bearer token.</summary>
 14514    public string Token { get; set; } = string.Empty;
 15
 16    /// <summary>When the token expires, in UTC.</summary>
 7417    public DateTime ExpiresAt { get; set; }
 18
 19    /// <summary>
 20    ///     Whether the authenticated person's email address is verified (FR-EV-05), reported here
 21    ///     rather than on UC-11's challenge response — the same value a direct login returns, since a
 22    ///     UC-38 login ends exactly like an ungated one.
 23    /// </summary>
 7524    public bool EmailVerified { get; set; }
 25
 26    /// <summary>
 27    ///     True when processing of the identity is restricted (NFR-24), so <see cref="Token" /> is a
 28    ///     subject-rights-only token: it is accepted only where the subject exports, erases, restricts,
 29    ///     or lifts their own restriction (UC-41, UC-42, UC-44, UC-45), and refused everywhere else.
 30    ///     A client should offer those actions — lifting the restriction above all — and ask the
 31    ///     subject to sign in again once it is lifted, for a full token.
 32    /// </summary>
 4933    public bool ProcessingRestricted { get; set; }
 34}