| | | 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 | | /// Revokes one of an application's credentials (UC-55, FR-AP-12). Every field comes from the |
| | | 9 | | /// route or the actor. |
| | | 10 | | /// </summary> |
| | | 11 | | public class RevokeApplicationCredentialCommand : BaseCommand, IActorScoped |
| | | 12 | | { |
| | | 13 | | /// <summary>The scope's <c>PublicId</c>, from the route.</summary> |
| | | 14 | | [JsonIgnore] |
| | 35 | 15 | | public Guid ScopeId { get; set; } |
| | | 16 | | |
| | | 17 | | /// <summary>The application's <c>PublicId</c>, from the route.</summary> |
| | | 18 | | [JsonIgnore] |
| | 34 | 19 | | public Guid Id { get; set; } |
| | | 20 | | |
| | | 21 | | /// <summary>The credential's <c>PublicId</c>, from the route.</summary> |
| | | 22 | | [JsonIgnore] |
| | 30 | 23 | | public Guid CredentialId { get; set; } |
| | | 24 | | |
| | | 25 | | [JsonIgnore] |
| | 34 | 26 | | public Guid ActingPersonId { get; set; } |
| | | 27 | | |
| | | 28 | | [JsonIgnore] |
| | 34 | 29 | | public int ActingRole { get; set; } |
| | | 30 | | } |