STWOpenIDConnectManager

object STWOpenIDConnectManager : ObservableApi

Functions

Link copied to clipboard
fun checkOpenIDConnectStatus(): Int

Check the OpenID connect status whether the token and/or session has been expired or no

Link copied to clipboard
fun completeLogin(    context: Context,     data: Intent,     onSuccess: () -> Unit,     onSynchronizationStarted: () -> Unit,     onSynchronizationFinished: () -> Unit,     onFail: (OpenIDError) -> Unit)

Complete the login using OpenID authentication credentials

Link copied to clipboard
fun confirmLogin(    context: Context,     onSuccess: () -> Unit,     onSynchronizationStarted: () -> Unit,     onSynchronizationFinished: () -> Unit,     onFail: (OpenIDError) -> Unit)

Called after receiving a BAD_DEVICE_ID error.

The BAD_DEVICE_ID error means the account is already used on another device. If you want to confirm using the account by the current device you just need the confirm by calling this method.

Link copied to clipboard
fun endSession(    data: Intent,     onSuccess: () -> Unit,     onFail: (OpenIDError) -> Unit)

Call this method in order to execute the sign out process, which sign the user out.

Link copied to clipboard
fun startLogin(    authRedirectScheme: String,     onStartLoginRedirect: (Intent) -> Unit,     onFail: (OpenIDError) -> Unit)

Start login using OpenID authentication method

Link copied to clipboard
fun startNewSession(    context: Context,     data: Intent,     onSuccess: () -> Unit,     onFail: (OpenIDError) -> Unit)

Starting new OpenID session.

Inherited functions

Link copied to clipboard
fun subscribe(listener: STWEventListener<STWEvent>): Disposable
Link copied to clipboard
fun subscribeFor(eventTypes: Array<Class<out STWEvent>>, listener: STWEventListener<STWEvent>): Disposable
fun subscribeFor(eventTypes: Array<String>, listener: STWEventListener<STWEvent>): Disposable

Subscribes to the specific eventTypes of the client.

fun subscribeFor(    lifecycleOwner: LifecycleOwner,     eventTypes: Array<Class<out STWEvent>>,     listener: STWEventListener<STWEvent>): Disposable
fun subscribeFor(    lifecycleOwner: LifecycleOwner,     eventTypes: Array<String>,     listener: STWEventListener<STWEvent>): Disposable

Subscribes to the specific eventTypes of the client, in the lifecycle of lifecycleOwner.

fun subscribeFor(    eventTypes: Array<String>,     filter: (STWEvent) -> Boolean,     listener: STWEventListener<STWEvent>): Disposable

Subscribes to the specific eventTypes of the client with additional filter.

fun subscribeFor(    lifecycleOwner: LifecycleOwner,     eventTypes: Array<String>,     filter: (STWEvent) -> Boolean,     listener: STWEventListener<STWEvent>): Disposable

Subscribes to the specific eventTypes of the client with additional filter, in the lifecycle of lifecycleOwner.

Link copied to clipboard
fun <T : STWEvent> subscribeForSingle(eventType: Class<T>, listener: STWEventListener<T>): Disposable
fun subscribeForSingle(eventType: String, listener: STWEventListener<STWEvent>): Disposable

Subscribes for the next event with the given eventType.

fun subscribeForSingle(    eventType: String,     filter: (STWEvent) -> Boolean,     listener: STWEventListener<STWEvent>): Disposable

Subscribes for the next event with the given eventType with additional filter.