| | | 1 | | using ArturRios.Mediator.Query; |
| | | 2 | | |
| | | 3 | | namespace ArturRios.Heimdall.Query.Output; |
| | | 4 | | |
| | | 5 | | /// <summary> |
| | | 6 | | /// Google User data returned by the UC-27 view/list queries. Carries FR-GO-05's registered fields |
| | | 7 | | /// plus the timestamps every other output exposes, with the internal <c>Id</c> left out |
| | | 8 | | /// (NFR-15). There is no password field to omit — a Google User has none, because authentication |
| | | 9 | | /// is delegated to Google. |
| | | 10 | | /// </summary> |
| | | 11 | | public class GoogleUserOutput : QueryOutput |
| | | 12 | | { |
| | | 13 | | /// <summary>Public identifier of the Google User.</summary> |
| | 80 | 14 | | public Guid Id { get; set; } |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Google's stable <c>sub</c> claim. Exposed deliberately: it is the identifier FR-GO-08 makes |
| | | 18 | | /// unique within the scope, and an administrator correlating the record with a Google account |
| | | 19 | | /// has nothing else to correlate on. It is not secret — a caller who may read this record |
| | | 20 | | /// already knows who it belongs to. |
| | | 21 | | /// </summary> |
| | 97 | 22 | | public string GoogleId { get; set; } = string.Empty; |
| | | 23 | | |
| | | 24 | | /// <summary>Full name, as it stood on the Google ID token the account last signed up with.</summary> |
| | 106 | 25 | | public string Name { get; set; } = string.Empty; |
| | | 26 | | |
| | | 27 | | /// <summary>Email address.</summary> |
| | 97 | 28 | | public string Email { get; set; } = string.Empty; |
| | | 29 | | |
| | | 30 | | /// <summary>Whether Google reported the address as verified.</summary> |
| | 54 | 31 | | public bool EmailVerified { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary>Profile picture URL, or <c>null</c> when the token carried no <c>picture</c> claim.</summary> |
| | 54 | 34 | | public string? ProfilePictureUrl { get; set; } |
| | | 35 | | |
| | | 36 | | /// <summary>Whether the Google User is logically deleted.</summary> |
| | 57 | 37 | | public bool IsDeleted { get; set; } |
| | | 38 | | |
| | | 39 | | /// <summary>Public identifier of the one scope the Google User belongs to (FR-GO-06).</summary> |
| | 57 | 40 | | public Guid ScopeId { get; set; } |
| | | 41 | | |
| | | 42 | | /// <summary>Creation timestamp.</summary> |
| | 53 | 43 | | public DateTime CreatedAt { get; set; } |
| | | 44 | | |
| | | 45 | | /// <summary>Last update timestamp.</summary> |
| | 53 | 46 | | public DateTime UpdatedAt { get; set; } |
| | | 47 | | } |