| | | 1 | | using System.Text.Json.Serialization; |
| | | 2 | | using ArturRios.Heimdall.Shared.Security; |
| | | 3 | | using ArturRios.Mediator.Query; |
| | | 4 | | |
| | | 5 | | namespace ArturRios.Heimdall.Query.Input; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// Request to read the caller's own two-factor authentication status (FR-2F-15). The person |
| | | 9 | | /// acted on is always the caller: <see cref="ActingPersonId" />/<see cref="ActingRole" /> are |
| | | 10 | | /// set by the controller from the authenticated caller and are never taken from the request, |
| | | 11 | | /// which is what keeps a person's configuration reachable only through their own identity and |
| | | 12 | | /// never by an identifier in a path (see <c>TwoFactorAuth</c>). The pagination members inherited |
| | | 13 | | /// from <see cref="BaseQuery" /> are unused. |
| | | 14 | | /// </summary> |
| | | 15 | | public class GetTwoFactorStatusQuery : BaseQuery, IActorScoped |
| | | 16 | | { |
| | | 17 | | [JsonIgnore] |
| | 20 | 18 | | public Guid ActingPersonId { get; set; } |
| | | 19 | | |
| | | 20 | | [JsonIgnore] |
| | 10 | 21 | | public int ActingRole { get; set; } |
| | | 22 | | } |