Class MfaSetupResponse

Assembly: redb.Identity.Contracts.dll

The answer of starting an MFA enrollment. It carries what the user needs to finish it, shown this once:
the TOTP secret and its otpauth:// URI, and the setup token the confirm call sends back. A method
may add its own members (the masked destination of an e-mail or SMS method).

public sealed class MfaSetupResponse

Inheritance

Object→MfaSetupResponse

Properties

Extra

Members a method adds, written after the others, e.g. masked_email.

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

Method

[JsonPropertyName("method")]
public required string Method { get; init; }

QrUri

TOTP: the otpauth:// URI for a QR code; it contains the secret.

[JsonPropertyName("qr_uri")]
public string? QrUri { get; init; }

SecretBase32

TOTP: the base32 shared secret; null for the other methods.

[JsonPropertyName("secret_base32")]
public string? SecretBase32 { get; init; }

SetupToken

Opaque encrypted token the confirm call must send back with the first code.

[JsonPropertyName("setup_token")]
public string? SetupToken { get; init; }