From 526c2364b9ad685d1c000fc8a168bf1305aaa8b7 Mon Sep 17 00:00:00 2001 From: vman Date: Fri, 18 Nov 2022 16:08:51 -0500 Subject: Add project files. --- .../MFA/MFAUpgrade.cs | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 VNLib.Plugins.Essentials.Accounts/MFA/MFAUpgrade.cs (limited to 'VNLib.Plugins.Essentials.Accounts/MFA/MFAUpgrade.cs') diff --git a/VNLib.Plugins.Essentials.Accounts/MFA/MFAUpgrade.cs b/VNLib.Plugins.Essentials.Accounts/MFA/MFAUpgrade.cs new file mode 100644 index 0000000..d18671e --- /dev/null +++ b/VNLib.Plugins.Essentials.Accounts/MFA/MFAUpgrade.cs @@ -0,0 +1,41 @@ +using System.Text.Json.Serialization; + +#nullable enable + +namespace VNLib.Plugins.Essentials.Accounts.MFA +{ + internal class MFAUpgrade + { + /// + /// The login's client id specifier + /// + [JsonPropertyName("cid")] + public string? ClientID { get; set; } + /// + /// The id of the user that is requesting a login + /// + [JsonPropertyName("uname")] + public string? UserName{ get; set; } + /// + /// The of the upgrade request + /// + [JsonPropertyName("type")] + public MFAType Type { get; set; } + /// + /// The a base64 encoded string of the user's + /// public key + /// + [JsonPropertyName("pubkey")] + public string? Base64PubKey { get; set; } + /// + /// The user's specified language + /// + [JsonPropertyName("lang")] + public string? ClientLocalLanguage { get; set; } + /// + /// The encrypted password token for the client + /// + [JsonPropertyName("cd")] + public string? PwClientData { get; set; } + } +} -- cgit