| | | 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 | | /// Issues a secret an application can exchange for an application token (UC-53, FR-AP-10). |
| | | 9 | | /// The route supplies the scope and the application; the body only the optional expiry. |
| | | 10 | | /// </summary> |
| | | 11 | | public class IssueApplicationCredentialCommand : BaseCommand, IActorScoped |
| | | 12 | | { |
| | | 13 | | /// <summary>The scope's <c>PublicId</c>, from the route.</summary> |
| | | 14 | | [JsonIgnore] |
| | 52 | 15 | | public Guid ScopeId { get; set; } |
| | | 16 | | |
| | | 17 | | /// <summary>The application's <c>PublicId</c>, from the route.</summary> |
| | | 18 | | [JsonIgnore] |
| | 52 | 19 | | public Guid Id { get; set; } |
| | | 20 | | |
| | | 21 | | /// <summary>When the credential stops being accepted; omitted for never. Must be in the future.</summary> |
| | 92 | 22 | | public DateTime? ExpiresAt { get; set; } |
| | | 23 | | |
| | | 24 | | [JsonIgnore] |
| | 52 | 25 | | public Guid ActingPersonId { get; set; } |
| | | 26 | | |
| | | 27 | | [JsonIgnore] |
| | 52 | 28 | | public int ActingRole { get; set; } |
| | | 29 | | } |