OAuthWebViewAuthenticator

class OAuthWebViewAuthenticator(    clientId: String,     clientSecret: String,     scope: String = "spark:all",     redirectUri: String,     email: String,     isFedRAMP: Boolean = false) : BaseLogger, Authenticator

An OAuth based authentication with a WebView. This is for authenticating a user on Cisco Webex.

Since

0.1

See also

Constructors

Link copied to clipboard
fun OAuthWebViewAuthenticator(    clientId: String,     clientSecret: String,     scope: String = "spark:all",     redirectUri: String,     email: String,     isFedRAMP: Boolean = false)

Functions

Link copied to clipboard
fun authorize(view: <Error class: unknown class>, handler: CompletionHandler<Void>)

Starts the authorization process by opening up a webView and handler then gives a call back when authorization is done

Link copied to clipboard
open override fun deauthorize(handler: CompletionHandler<Void>?)

Deauthorizes the current user and clears any persistent state with regards to the current user. If the com.ciscowebex.androidsdk.phone.Phone is registered, it should be deregistered before calling this method.

Link copied to clipboard
fun getAuthorizationUrl(handler: CompletionHandler<String?>)

Provides an authorization url that can used for first leg of OAuth2

Link copied to clipboard
open override fun getToken(handler: CompletionHandler<String?>)

Returns an access token of this authenticator.

Link copied to clipboard
open override fun isAuthorized(): Boolean

Returns True if the user is logically authorized.

Link copied to clipboard
fun logDebug(tag: String, message: String)
Link copied to clipboard
fun logError(tag: String, message: String)
Link copied to clipboard
fun logInfo(tag: String, message: String)
Link copied to clipboard
fun logWarn(tag: String, message: String)