MSALNativeAuthMFARequiredDelegate
@objc
public protocol MSALNativeAuthMFARequiredDelegate : MSALNativeAuthFlowDelegate
Per-state delegate for the MSALNativeAuthMFARequiredState step of a Native Auth V2 flow.
Conform to this protocol (in addition to the terminal callbacks inherited from
MSALNativeAuthFlowDelegate) to handle this state. Conforming is opt-in per state, but the
callback is required once you conform.
Warning
This API is experimental. It may be changed in the future without notice. Do not use in production applications.-
The server requires multi-factor authentication; the user must select an auth method. Continue with
selectAuthMethod(_:verificationContact:delegate:).Note
If the app’s delegate does not conform to this protocol, thenonFlowError(error:scenario:)is called with error typenotImplemented.Declaration
Swift
@MainActor func onMFARequired(state: MSALNativeAuthMFARequiredState, scenario: MSALNativeAuthFlowScenario)Parameters
stateThe MFA-required state (available auth methods).
scenarioThe flow that produced this callback.
View on GitHub