Class MeWebAuthnController

Assembly: redb.Identity.Management.dll

MFA-3: self-service WebAuthn (FIDO2 / Passkey) management at
/api/v1/identity/me/webauthn/*. Mirrors the dispatch shape of
\u2014 the user id is always derived from the access-token
subject by MeWebAuthnProcessor; under no circumstances may a caller
register, rename, or delete credentials for someone else.
Auth: Bearer with identity:manage or identity:account scope.

[Route("me/webauthn")]
public class MeWebAuthnController : IdentityControllerBase

Inheritance

Object→RedbController→IdentityControllerBase→MeWebAuthnController

Inherited Members

Methods

Credentials()

List the caller's registered WebAuthn credentials.

[HttpGet("credentials")]
public Task<object?> Credentials()

Delete(string)

Delete a single credential by key.

[HttpDelete("credentials/{key}")]
public Task<object?> Delete(string key)

RegisterBegin(Dictionary<string, object?>)

Begin a WebAuthn registration ceremony. Body may carry username,

[HttpPost("register/begin")]
public Task<object?> RegisterBegin(Dictionary<string, object?> body)

RegisterComplete(Dictionary<string, object?>)

Complete a WebAuthn registration with the browser's attestation.

[HttpPost("register/complete")]
public Task<object?> RegisterComplete(Dictionary<string, object?> body)

Rename(string, Dictionary<string, object?>)

Rename a single credential.

[HttpPatch("credentials/{key}")]
public Task<object?> Rename(string key, Dictionary<string, object?> body)

Status()

Return WebAuthn enrollment status for the caller.

[HttpGet(null)]
public Task<object?> Status()