OAuthAuthenticator

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

An OAuth based authentication strategy for authenticating a user on Cisco Webex.

Since

0.1

See also

Constructors

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

Functions

Link copied to clipboard
fun authorize(code: String, handler: CompletionHandler<Void>)

Authorize with the OAuth authorization code

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)