Class MeMfaController

Assembly: redb.Identity.Management.dll

H3 (v1.0 DoD §6): self-service MFA management at
/api/v1/identity/me/mfa/. Mirrors the admin /mfa/ surface but
always derives the user id from the access-token subject — under no circumstances
may a caller setup, confirm, disable, or regenerate codes for someone else.
Auth: Bearer with identity:manage or identity:account scope.

[Route("me/mfa")]
public class MeMfaController : IdentityControllerBase

Inheritance

Inherited Members

Methods

Confirm(Dictionary<string, object?>)

Confirm a pending MFA enrolment with the OTP code returned to the user.

[HttpPost("confirm")]
public Task<object?> Confirm(Dictionary<string, object?> body)

Disable(string)

Disable a single MFA method registered to the caller.

[HttpDelete("{method}")]
public Task<object?> Disable(string method)

DownloadRecoveryCodes()

MFA backup-codes download UX — regenerates the caller's recovery codes and returns

[HttpGet("recovery-codes/download")]
public Task<object?> DownloadRecoveryCodes()

RegenerateRecoveryCodes()

Regenerate the caller's recovery codes (invalidates all previous codes).

[HttpPost("recovery-codes")]
public Task<object?> RegenerateRecoveryCodes()

Setup(Dictionary<string, object?>)

Begin enrolment of an additional MFA method. Body is forwarded as-is

[HttpPost("setup")]
public Task<object?> Setup(Dictionary<string, object?> body)

Status()

Return MFA enrollment status for the caller.

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