| | | 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 register an application within a scope (UC-16). <see cref="ScopeId" /> comes from the |
| | | 9 | | /// route; <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the controller from |
| | | 10 | | /// the authenticated caller (for the AF-16c self-owner rule and the Scope Admin ownership check) |
| | | 11 | | /// and are never bound from the body. They are <c>[JsonIgnore]</c>, so they are not deserialized |
| | | 12 | | /// from the body and do not appear in the request schema. |
| | | 13 | | /// </summary> |
| | | 14 | | public class CreateApplicationCommand : BaseCommand, IActorScoped |
| | | 15 | | { |
| | | 16 | | [JsonIgnore] |
| | 62 | 17 | | public Guid ScopeId { get; set; } |
| | | 18 | | |
| | 159 | 19 | | public string Name { get; set; } = string.Empty; |
| | | 20 | | |
| | | 21 | | /// <summary>Public identifier of the person that will own the application (FR-AP-03).</summary> |
| | 113 | 22 | | public Guid OwnerId { get; set; } |
| | | 23 | | |
| | | 24 | | [JsonIgnore] |
| | 57 | 25 | | public Guid ActingPersonId { get; set; } |
| | | 26 | | |
| | | 27 | | [JsonIgnore] |
| | 74 | 28 | | public int ActingRole { get; set; } |
| | | 29 | | } |