OAuth2Authentication
public protocol OAuth2Authentication
The OAuth2Authentication
provides an API to add OAuth authentication and authorization functionality to your project and allows authentication of users without intercepting any secure workflows.
-
Starts the OAuth 2.0 authentication process.
Declaration
Swift
func authenticate(completionHandler: @escaping (OAuth2Token?, Error?) -> Void)
-
Refreshes the given OAuth 2.0 token.
Declaration
Swift
func refresh(token: OAuth2Token, completionHandler: @escaping (OAuth2Token?, Error?) -> Void)
-
Cancels the ongoing authentication process.
Declaration
Swift
func cancelAuthentication()