oAuthLogin

abstract fun oAuthLogin(redirectedUri: String, callback: (Result<Unit>) -> Unit): Cancelable

Support function to login the user using OAuth2-

This usually happens after a Chrome Custom tab was shown and the user successfully authenticated with the oauth2 provider.

The complete redirectedUri (including URI scheme, host and parameters) will be forwarded to the Smart Workspace backend for authentication.

Note: The purpose of this function is to support clients that can not use Coroutines or the Kotlin programming language!

Since

1.10.0

Return

Cancelable It is your responsibility to cancel this operation, when no longer needed, to avoid memory leaks.

Parameters

redirectedUri

a redirect URI

callback

receiving the Result

abstract fun oAuthLogin(redirectedUri: String, lifecycleOwner: LifecycleOwner, callback: (Result<Unit>) -> Unit): Cancelable

Support function to login the user using OAuth2-

This usually happens after a Chrome Custom tab was shown and the user successfully authenticated with the oauth2 provider.

The complete redirectedUri (including URI scheme, host and parameters) will be forwarded to the Smart Workspace backend for authentication.

Note: The purpose of this function is to support clients that can not use Coroutines or the Kotlin programming language!

Since

1.10.0

Return

Cancelable In case you want to cancel before Lifecycle.State.DESTROYED.

Parameters

redirectedUri

a redirect URI

lifecycleOwner

auto cancel the Cancelable when lifecycle state is Lifecycle.State.DESTROYED.

callback

receiving the Result