| | | 1 | | using System.Text.Json.Serialization; |
| | | 2 | | using ArturRios.Heimdall.Shared.Security; |
| | | 3 | | using ArturRios.Mediator.Command; |
| | | 4 | | |
| | | 5 | | namespace ArturRios.Heimdall.Command.Input; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// Intent to confirm the caller's pending two-factor authentication setup (UC-37, FR-2F-04), |
| | | 9 | | /// proving control of every method selected in UC-36. <see cref="ActingPersonId" />/ |
| | | 10 | | /// <see cref="ActingRole" /> are set by the controller from the authenticated caller and are |
| | | 11 | | /// never bound from the body — like <see cref="EnableTwoFactorAuthCommand" />, a caller can only |
| | | 12 | | /// ever confirm their own configuration. They are <c>[JsonIgnore]</c>, so they are not |
| | | 13 | | /// deserialized from the body and do not appear in the request schema. |
| | | 14 | | /// </summary> |
| | | 15 | | public class ConfirmTwoFactorAuthCommand : BaseCommand, IActorScoped |
| | | 16 | | { |
| | | 17 | | /// <summary>The 6-digit authenticator-app code, required only when the App method is enabled.</summary> |
| | 147 | 18 | | public string? AppCode { get; set; } |
| | | 19 | | |
| | | 20 | | /// <summary>The 6-digit email code, required only when the Email method is enabled.</summary> |
| | 141 | 21 | | public string? EmailCode { get; set; } |
| | | 22 | | |
| | | 23 | | [JsonIgnore] |
| | 110 | 24 | | public Guid ActingPersonId { get; set; } |
| | | 25 | | |
| | | 26 | | [JsonIgnore] |
| | 55 | 27 | | public int ActingRole { get; set; } |
| | | 28 | | } |