Webcom Android SDK Public API Reference / com.orange.webcom.sdkv2.authentication.methods / OAuth2Method

OAuth2Method

class OAuth2Method : AuthenticationMethod

Manages authentication of users by delegation to a third-party OAuth2 identity provider.

Instances of this OAuth2Method must be created using the AuthenticationService.getOAuth2Method method.

Types

Provider

sealed class Provider

List of all available 3rd-party OAuth2 providers.

Functions

authenticate

fun authenticate(context: AuthenticationService.Context = Context.New, callback: WebcomResultCallback<AuthenticationDetails>? = null): Unit

Delegates the authentication of the user to the third-party provider associated with this OAuth2Method instance. This operation is asynchronous and calls the given callback with the authentication result once performed.