From b1272f730189b81c80357b3f1c2bbcb9f3f54da1 Mon Sep 17 00:00:00 2001 From: owenchen Date: Thu, 20 Aug 2026 15:15:49 +0800 Subject: [PATCH] ow --- .../Data/WebAuthnOptions.cs | 48 ------------------- 1 file changed, 48 deletions(-) delete mode 100644 CloudBuilder/CloudBuilder.Security/Data/WebAuthnOptions.cs diff --git a/CloudBuilder/CloudBuilder.Security/Data/WebAuthnOptions.cs b/CloudBuilder/CloudBuilder.Security/Data/WebAuthnOptions.cs deleted file mode 100644 index 417a25c..0000000 --- a/CloudBuilder/CloudBuilder.Security/Data/WebAuthnOptions.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace CloudBuilder.Security.Data -{ - - /// - /// Plain-old-data wrapper for the credential fields we persist on - /// SecurityUser. The frontend never sees this type. - /// - public class StoredBiometricCredential - { - public byte[] CredentialId { get; set; } = Array.Empty(); - public byte[] PublicKey { get; set; } = Array.Empty(); - } - - public class WebAuthnOptions - { - /// - /// Relying Party ID — the registrable domain suffix of the - /// origin's host. For dev: "localhost". For production: - /// "eleave.1010printing.com". - /// - public string RpId { get; set; } = "localhost"; - - /// - /// Human-readable relying-party name. Shown in the OS biometric - /// prompt ("Use HR Plus to sign in to localhost"). - /// - public string RpName { get; set; } = "HR Plus"; - - /// - /// The full origin (scheme + host + port) the user is loading - /// the page from. Fido2NetLib verifies the attestation/assertion - /// origin matches this exactly. Must be HTTPS in production - /// (localhost is exempt). - /// - public string Origin { get; set; } = "https://localhost:8000"; - - /// - /// WebAuthn ceremony timeout in milliseconds. Default 60s. - /// - public int TimeoutMs { get; set; } = 60000; - } -}