Interface IWebAuthnMfaMethod
MFA-3: typed SPI for the WebAuthn (FIDO2 / Passkey) flow. Standalone — does NOT
inherit because the WebAuthn shape (typed ceremony objects,
dual begin/complete, allow-credentials filtering) is fundamentally different from the
OTP-style InitiateSetup / ConfirmAndApply / Verify(code) contract. Orchestration
of WebAuthn lives on dedicated methods rather than the generic
/ pipeline.
All cryptographic verification (attestation parsing, signature verification, sign-counter
rollback) is delegated to Fido2NetLib (IFido2). This abstraction sits ONE level above
it and adds: per-credential UV-downgrade ratchet (),
AAGUID blocklist enforcement, anti-replay via ,
fail-fast options validation. owns the surrounding transactions
and persists the resulting mutations.
public interface IWebAuthnMfaMethod
Methods
BeginAssertion(IReadOnlyDictionary<string, WebAuthnCredential>)
Builds for the browser to invoke
AssertionOptions BeginAssertion(IReadOnlyDictionary<string, WebAuthnCredential> credentials)
BeginRegistration(long, string, string, IReadOnlyDictionary<string, WebAuthnCredential>?, bool)
Builds for the browser to invoke
CredentialCreateOptions BeginRegistration(long userId, string username, string displayName, IReadOnlyDictionary<string, WebAuthnCredential>? existingCredentials, bool enforceUv)
CompleteAssertionAsync(AuthenticatorAssertionRawResponse, AssertionOptions, IReadOnlyDictionary<string, WebAuthnCredential>, long, CancellationToken)
Verifies an assertion response. Returns the matched credential (mutated in-place
Task<WebAuthnCredential?> CompleteAssertionAsync(AuthenticatorAssertionRawResponse assertionResponse, AssertionOptions originalOptions, IReadOnlyDictionary<string, WebAuthnCredential> credentials, long userId, CancellationToken ct = default)
CompleteRegistrationAsync(AuthenticatorAttestationRawResponse, CredentialCreateOptions, long, CancellationToken)
Verifies an attestation response against the original options + challenge bytes.
Task<WebAuthnCredential> CompleteRegistrationAsync(AuthenticatorAttestationRawResponse attestationResponse, CredentialCreateOptions originalOptions, long userId, CancellationToken ct = default)