AuthorizationHandler
public protocol AuthorizationHandler : class
Protocol for AuthorizationHandlers.
Authorization handlers provide specific authorization (post-authentication) capabilities for the AuthenticationManager
Classes that implement this protocol handle authorization, by exchanging authentication tokens for authorized user information.
-
Starts the authorization process.
Declaration
Swift
func authorize(authenticationPayload: [String: Any], completionHandler: @escaping (_ userInformation: [String: Any]) -> Void)Parameters
authenticationPayloadthe dictionary of information gathered during the authentication process. This information usually contains user-identifying tokens which are exchanged for specific user data during the authentication process.
completionHandlerclosure called when authorization has completed.
userInformationdictionary of user information retrieved during the authorization process.
View on GitHub
AuthorizationHandler Protocol Reference