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
authenticationPayload
the 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.
completionHandler
closure called when authorization has completed.
userInformation
dictionary of user information retrieved during the authorization process.