From 31220eaf6583c28f2df5070c3c8841a02a17cdbe Mon Sep 17 00:00:00 2001 From: vnugent Date: Mon, 22 May 2023 16:48:31 -0400 Subject: Functionality error patches --- .../src/MFA/UserMFAExtensions.cs | 30 ---------------------- 1 file changed, 30 deletions(-) (limited to 'plugins/VNLib.Plugins.Essentials.Accounts/src/MFA') diff --git a/plugins/VNLib.Plugins.Essentials.Accounts/src/MFA/UserMFAExtensions.cs b/plugins/VNLib.Plugins.Essentials.Accounts/src/MFA/UserMFAExtensions.cs index 99f7fbb..e042799 100644 --- a/plugins/VNLib.Plugins.Essentials.Accounts/src/MFA/UserMFAExtensions.cs +++ b/plugins/VNLib.Plugins.Essentials.Accounts/src/MFA/UserMFAExtensions.cs @@ -27,7 +27,6 @@ using System.Linq; using System.Buffers; using System.Text.Json; using System.Collections.Generic; -using System.Text.Json.Serialization; using VNLib.Hashing; using VNLib.Utils; @@ -44,7 +43,6 @@ namespace VNLib.Plugins.Essentials.Accounts.MFA { public const string WEBAUTHN_KEY_ENTRY = "mfa.fido"; public const string TOTP_KEY_ENTRY = "mfa.totp"; - public const string PGP_PUB_KEY = "mfa.pgpp"; public const string SESSION_SIG_KEY = "mfa.sig"; public const string USER_PKI_ENTRY = "mfa.pki"; @@ -270,34 +268,6 @@ namespace VNLib.Plugins.Essentials.Accounts.MFA #endregion - #region pgp - - private class PgpMfaCred - { - [JsonPropertyName("p")] - public string? SpkiPublicKey { get; set; } - - [JsonPropertyName("c")] - public string? CurveFriendlyName { get; set; } - } - - - /// - /// Gets the stored PGP public key for the user - /// - /// - /// The stored PGP signature key - public static string MFAGetPGPPubKey(this IUser user) => user[PGP_PUB_KEY]; - - public static void MFASetPGPPubKey(this IUser user, string? pubKey) => user[PGP_PUB_KEY] = pubKey!; - - public static void VerifySignedData(string data) - { - - } - - #endregion - #region webauthn #endregion -- cgit