Protocols
The following protocols are available globally.
-
Representation of an authenticated account in the Microsoft identity platform. Use MSALAccount to query information about the account, like username or id_token claims. Store
identifierfor getting tokens silently from MSAL at a later point.See moreNote
For a list of standard id_token claims in the Microsoft Identity platform, see https://docs.microsoft.com/en-us/azure/active-directory/develop/id-tokensDeclaration
Objective-C
@protocol MSALAccount <NSObject>Swift
protocol MSALAccountProtocol : NSObjectProtocol -
Undocumented
See moreDeclaration
Objective-C
@protocol MSALAuthenticationSchemeProtocol <NSObject> @property (nonatomic, readonly) MSALAuthScheme scheme; @property (nonatomic, readonly) NSString *authenticationScheme; @endSwift
protocol MSALAuthenticationSchemeProtocol : NSObjectProtocol -
Use this protocol if you have external account storage in addition to MSAL account storage. For example, if you find yourself in situation where on each MSAL completion block invocation you are updating accounts in your own storage, it might be beneficial to instead use MSALExternalAccountProviding extensibility feature.
See moreDeclaration
Objective-C
@protocol MSALExternalAccountProviding <NSObject>Swift
protocol MSALExternalAccountProviding : NSObjectProtocol -
A protocol that objects adopt to provide deserialization from JSON.
See moreDeclaration
Objective-C
@protocol MSALJsonDeserializable <NSObject>Swift
protocol MSALJsonDeserializable : NSObjectProtocol -
A protocol that objects adopt to provide serialization to JSON.
See moreDeclaration
Objective-C
@protocol MSALJsonSerializable <NSObject>Swift
protocol MSALJsonSerializable : NSObjectProtocol -
Class implementing MSALSerializedADALCacheProviderDelegate is responsible for persistence and management of ADAL cache on macOS
See moreDeclaration
Objective-C
@protocol MSALSerializedADALCacheProviderDelegate <NSObject>Swift
protocol MSALSerializedADALCacheProviderDelegate : NSObjectProtocol -
Undocumented
See moreDeclaration
Swift
@objc public protocol MSALNativeAuthRequestInterceptor : NSObjectProtocol -
Protocol that defines the methods of a Credentials delegate
See moreDeclaration
Swift
@objc public protocol CredentialsDelegate -
Undocumented
See moreDeclaration
Swift
@objc public protocol RegisterStrongAuthChallengeDelegate -
Undocumented
See moreDeclaration
Swift
@objc public protocol RegisterStrongAuthSubmitChallengeDelegate -
Protocol that defines the methods of a MFARequestChallenge delegate
See moreDeclaration
Swift
@objc public protocol MFARequestChallengeDelegate -
Protocol that defines the methods of a MFAGetAuthMethodsDelegate delegate
See moreDeclaration
Swift
@objc public protocol MFASubmitChallengeDelegate -
Protocol that defines the methods of a ResetPasswordStart delegate
See moreDeclaration
Swift
@objc public protocol ResetPasswordStartDelegate -
Protocol that defines the methods of a ResetPasswordVerifyCode delegate
See moreDeclaration
Swift
@objc public protocol ResetPasswordVerifyCodeDelegate -
Protocol that defines the methods of a ResetPasswordResendCode delegate
See moreDeclaration
Swift
@objc public protocol ResetPasswordResendCodeDelegate -
Protocol that defines the methods of a ResetPasswordRequired delegate
See moreDeclaration
Swift
@objc public protocol ResetPasswordRequiredDelegate -
Protocol that defines the methods of a SignInAfterResetPassword delegate
See moreDeclaration
Swift
@objc public protocol SignInAfterResetPasswordDelegate -
Protocol that defines the methods of a SignInAfterSignUp delegate
See moreDeclaration
Swift
@objc public protocol SignInAfterSignUpDelegate -
Protocol that defines the methods of a SignInStart delegate
See moreDeclaration
Swift
@objc public protocol SignInStartDelegate -
Protocol that defines the methods of a SignInPasswordRequired delegate
See moreDeclaration
Swift
@objc public protocol SignInPasswordRequiredDelegate -
Protocol that defines the methods of a SignInResendCode delegate
See moreDeclaration
Swift
@objc public protocol SignInResendCodeDelegate -
Protocol that defines the methods of a SignInVerifyCode delegate
See moreDeclaration
Swift
@objc public protocol SignInVerifyCodeDelegate -
Protocol that defines the methods of a SignUpStart delegate
See moreDeclaration
Swift
@objc public protocol SignUpStartDelegate -
Protocol that defines the methods of a SignUpVerifyCode delegate
See moreDeclaration
Swift
@objc public protocol SignUpVerifyCodeDelegate -
Protocol that defines the methods of a SignUpResendCode delegate
See moreDeclaration
Swift
@objc public protocol SignUpResendCodeDelegate -
Protocol that defines the methods of a SignUpPasswordRequired delegate
See moreDeclaration
Swift
@objc public protocol SignUpPasswordRequiredDelegate -
Protocol that defines the methods of a SignUpAttributesRequired delegate
See moreDeclaration
Swift
@objc public protocol SignUpAttributesRequiredDelegate -
Shared base delegate for all Native Auth V2 (server-driven) flows.
Unlike V1 - which exposes a different delegate protocol per step - V2 uses one family of delegates for sign up, sign in and reset password. The SDK drives the flow and reports back through these callbacks; the app reacts and continues the flow by calling methods directly on the
MSALNativeAuthStateit is handed.This base protocol declares only the two terminal callbacks (
onFlowCompleted(result:scenario:)andonFlowError(error:scenario:)) that every flow reports. Each server-driven state is delivered through its own per-state delegate protocol (e.g.MSALNativeAuthCodeRequiredDelegate) that extends this base and adds a single strongly-typed, required callback. The app conforms to the per-state protocols for the states it wants to handle; if it does not conform to a state’s protocol,onFlowError(error:scenario:)is called with error typenotImplemented.All callbacks are invoked on the main actor.
See moreWarning
This API is experimental. It may be changed in the future without notice. Do not use in production applications.Declaration
Swift
@objc public protocol MSALNativeAuthFlowDelegate -
Per-state delegate for the
MSALNativeAuthAttributesInvalidStatestep 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.See moreWarning
This API is experimental. It may be changed in the future without notice. Do not use in production applications.Declaration
Swift
@objc public protocol MSALNativeAuthAttributesInvalidDelegate : MSALNativeAuthFlowDelegate -
Per-state delegate for the
MSALNativeAuthAttributesRequiredStatestep 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.See moreWarning
This API is experimental. It may be changed in the future without notice. Do not use in production applications.Declaration
Swift
@objc public protocol MSALNativeAuthAttributesRequiredDelegate : MSALNativeAuthFlowDelegate -
Per-state delegate for the
MSALNativeAuthCodeRequiredStatestep 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.See moreWarning
This API is experimental. It may be changed in the future without notice. Do not use in production applications.Declaration
Swift
@objc public protocol MSALNativeAuthCodeRequiredDelegate : MSALNativeAuthFlowDelegate -
Per-state delegate for the
MSALNativeAuthMFARequiredStatestep 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.See moreWarning
This API is experimental. It may be changed in the future without notice. Do not use in production applications.Declaration
Swift
@objc public protocol MSALNativeAuthMFARequiredDelegate : MSALNativeAuthFlowDelegate -
Per-state delegate for the
MSALNativeAuthMFAVerificationRequiredStatestep 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.See moreWarning
This API is experimental. It may be changed in the future without notice. Do not use in production applications.Declaration
Swift
@objc public protocol MSALNativeAuthMFAVerificationRequiredDelegate : MSALNativeAuthFlowDelegate -
Per-state delegate for the
MSALNativeAuthNewPasswordRequiredStatestep 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.See moreWarning
This API is experimental. It may be changed in the future without notice. Do not use in production applications.Declaration
Swift
@objc public protocol MSALNativeAuthNewPasswordRequiredDelegate : MSALNativeAuthFlowDelegate -
Per-state delegate for the
MSALNativeAuthPasswordRequiredStatestep 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.See moreWarning
This API is experimental. It may be changed in the future without notice. Do not use in production applications.Declaration
Swift
@objc public protocol MSALNativeAuthPasswordRequiredDelegate : MSALNativeAuthFlowDelegate -
Per-state delegate for the
MSALNativeAuthSignInAfterResetPasswordStatestep 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.See moreWarning
This API is experimental. It may be changed in the future without notice. Do not use in production applications.Declaration
Swift
@objc public protocol MSALNativeAuthSignInAfterResetPasswordRequiredDelegate : MSALNativeAuthFlowDelegate -
Per-state delegate for the
MSALNativeAuthStrongAuthRegistrationRequiredStatestep 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.See moreWarning
This API is experimental. It may be changed in the future without notice. Do not use in production applications.Declaration
Swift
@objc public protocol MSALNativeAuthStrongAuthRegistrationRequiredDelegate : MSALNativeAuthFlowDelegate -
Per-state delegate for the
MSALNativeAuthStrongAuthVerificationRequiredStatestep 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.See moreWarning
This API is experimental. It may be changed in the future without notice. Do not use in production applications.Declaration
Swift
@objc public protocol MSALNativeAuthStrongAuthVerificationRequiredDelegate : MSALNativeAuthFlowDelegate
View on GitHub
Protocols Reference