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

CustomMethod

class CustomMethod : AuthenticationMethod

Manages authentication of users based on an external ad-hoc (custom) identity provider.

See the Webcom online documentation to know the technical constraints on such a custom provider.

Instances of this CustomMethod must be created using the AuthenticationService.getCustomMethod method.

Functions

authenticate

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

Authenticates the user based on credentials issued by the custom identity provider associated with this CustomMethod instance. This operation is asynchronous and calls the given callback with the authentication result once performed.