| | | 1 | | using ArturRios.Mediator.Command; |
| | | 2 | | |
| | | 3 | | namespace ArturRios.Heimdall.Command.Input; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Intent to authenticate a person and obtain a token (UC-11). <see cref="ScopeId" /> selects |
| | | 7 | | /// which lookup applies: present, the person is sought among the <c>User</c>s of that scope, |
| | | 8 | | /// whose emails are only unique within it (FR-AU-01); absent, among the <c>ScopeAdmin</c>s and |
| | | 9 | | /// <c>SystemAdmin</c>s, whose emails are unique system-wide (FR-AU-02). |
| | | 10 | | /// </summary> |
| | | 11 | | public class LoginCommand : BaseCommand |
| | | 12 | | { |
| | | 13 | | /// <summary>The email to authenticate with.</summary> |
| | 919 | 14 | | public string Email { get; set; } = string.Empty; |
| | | 15 | | |
| | | 16 | | /// <summary>The password to authenticate with.</summary> |
| | 919 | 17 | | public string Password { get; set; } = string.Empty; |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// The <c>PublicId</c> of the scope the person belongs to. Required for a <c>User</c>, |
| | | 21 | | /// omitted by a <c>ScopeAdmin</c> or <c>SystemAdmin</c>. |
| | | 22 | | /// </summary> |
| | 469 | 23 | | public Guid? ScopeId { get; set; } |
| | | 24 | | } |