Interface IMfaStateInspector

Assembly: redb.Identity.Contracts.dll

Minimal read-only surface over the encrypted MFA challenge state for transport facades
(HTTP, gRPC, …) that need to render UI dependent on which MFA methods the user has
configured, without taking a project-reference on Core's full MfaStateProtector

MfaState POCO (which carries 50+ fields including WebAuthn challenges that
belong to Core's domain).


Implemented by Core (MfaStateProtector) and registered in DI alongside the
concrete protector. HTTP UI processors lookup this interface only.

public interface IMfaStateInspector

Methods

TryGetMethods(string?)

Decrypts the supplied protected MFA-state token and returns the configured MFA

string[]? TryGetMethods(string? protectedState)