Class MfaSetupResult

Assembly: redb.Identity.Core.dll

Result of Services.IMfaMethod.SetupAsync: contains data the user needs
to complete MFA enrollment (secret, QR code URI, etc.).

public sealed record MfaSetupResult : IEquatable<MfaSetupResult>

Inheritance

Object→MfaSetupResult

Implements

Properties

Extra

Extensibility for future methods (e.g. WebAuthn challenge).

public Dictionary<string, object>? Extra { get; init; }

MethodId

MFA method that generated this result (e.g. "totp").

public required string MethodId { get; init; }

QrUri

For TOTP: otpauth:// URI for QR code generation.

public string? QrUri { get; init; }

SecretBase32

For TOTP: base32-encoded shared secret (shown once during setup).

public string? SecretBase32 { get; init; }

SetupToken

Opaque, encrypted setup token (B5). The client MUST submit it back to the confirm

public string? SetupToken { get; init; }