diff options
| author | Leitwolf11 | 2026-10-03 18:46:59 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-10-03 18:46:59 +0300 |
| commit | b84a2216c26cc5392d0dc300b7a605ccb288d8c8 (patch) | |
| tree | 048ae623f49cc5f2f94234d747351f9e659f5267 /apps/api/Accounts/AccountRecord.cs | |
| parent | ec774db15976385a6d5ea6f48d3622fe507d3843 (diff) | |
| parent | cf444eb3bccf99c10f59ed5330b61c0397e0aeaa (diff) | |
| download | progmaweb-fix/api-without-google.tar.gz | |
Merge remote-tracking branch 'origin/main' into fix/api-without-googlefix/api-without-google
Diffstat (limited to 'apps/api/Accounts/AccountRecord.cs')
| -rw-r--r-- | apps/api/Accounts/AccountRecord.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/api/Accounts/AccountRecord.cs b/apps/api/Accounts/AccountRecord.cs index 7625168..5e27f3e 100644 --- a/apps/api/Accounts/AccountRecord.cs +++ b/apps/api/Accounts/AccountRecord.cs @@ -3,6 +3,19 @@ namespace Progmasoft.Progmaweb.Api.Accounts; +/// <summary>An account as the store keeps it.</summary> +/// <param name="Id">Stable identifier; sessions refer to the account by it.</param> +/// <param name="AccountName">Account name in its canonical spelling, as shown and used in URLs.</param> +/// <param name="NormalizedAccountName">Upper-case form of the name; the uniqueness key.</param> +/// <param name="Email">Email address as the owner entered it.</param> +/// <param name="NormalizedEmail">Upper-case form of the address; the uniqueness key.</param> +/// <param name="GoogleSubject"> +/// Subject identifier of the linked Google identity; <see langword="null"/> for a password account. +/// </param> +/// <param name="PasswordHash"> +/// ASP.NET Core Identity password hash; <see langword="null"/> for an account that signs in through Google only. +/// </param> +/// <param name="CreatedAt">Moment the account was created, in UTC.</param> internal sealed record AccountRecord( Guid Id, string AccountName, @@ -13,6 +26,11 @@ internal sealed record AccountRecord( string? PasswordHash, DateTimeOffset CreatedAt); +/// <summary>A session as the store keeps it.</summary> +/// <param name="TokenDigest">SHA-256 digest of the session token. The token itself is never stored.</param> +/// <param name="AccountId">Identifier of the account the session belongs to.</param> +/// <param name="CreatedAt">Moment the session was opened, in UTC.</param> +/// <param name="ExpiresAt">Moment the session stops being valid, in UTC.</param> internal sealed record SessionRecord( byte[] TokenDigest, Guid AccountId, |