OAuthAuthenticator
public class OAuthAuthenticator : AuthenticatorAn OAuth based authentication strategy for authenticating a user on Cisco Webex.
Since
1.2.0- 
                  
                  The delegate, which gets callbacks for refresh access token failure DeclarationSwift public weak var delegate: OAuthAuthenticatorDelegate?
- 
                  
                  See See Authenticator.authorizedSince 1.2.0DeclarationSwift public var authorized: Bool { get }
- 
                  
                  DeclarationSwift public convenience init(clientId: String, clientSecret: String, scope: String, redirectUri: String, storage: OAuthStorage = OAuthKeychainStorage())ParametersclientIdthe OAuth client id clientSecretthe OAuth client secret scopespace-separated string representing which permissions the application needs redirectUrithe redirect URI that will be called when completing the authentication. This must match the redirect URI registered to your clientId. storagethe storage mechanism for persisting authentication information 
- 
                  
                  Brings up a web-based authorization view controller and directs the user through the OAuth process. Since 1.2.0DeclarationSwift public func authorize(parentViewController: UIViewController, completionHandler: ((_ success: Bool) -> Void)? = nil)ParametersparentViewControllerthe parent view controller for the OAuth view controller completionHandlerthe completion handler will be called when authentication is complete, with a boolean to indicate if the authentication process was successful. It will be called directly after the OAuth view controller has begun to dismiss itself in an animated way. 
- 
                  
                  Handles fetching the access token using the OAuth code generated during authorization. Assumes the application handles the authentication part of the process itself. Since 2.6.0DeclarationSwift public func authorize(oauthCode: String, completionHandler: ((_ success: Bool) -> Void)? = nil)Parameterscodethe OAuth code generated during authorization. completionHandlerthe completion handler will be called when fetching the access token is complete, with a boolean to indicate if the process was successful. 
- 
                  
                  See See Authenticator.accessToken(completionHandler:)Since 1.2.0DeclarationSwift public func accessToken(completionHandler: @escaping (String?) -> Void)
- 
                  
                  See See Authenticator.refreshToken(completionHandler:)Since 1.4.0DeclarationSwift public func refreshToken(completionHandler: @escaping (String?) -> Void)
- 
                  
                  See See Authenticator.deauthorize()Since 1.2.0DeclarationSwift public func deauthorize()
 View on GitHub
View on GitHub OAuthAuthenticator Class Reference
        OAuthAuthenticator Class Reference