authenticate
fun authenticate(credentials: String, context: AuthenticationService.Context = Context.New, callback: WebcomResultCallback<AuthenticationDetails>? = null)
Content copied to clipboard
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.
Depending on whether the Webcom Authentication Service already knows the authenticated identity (which is managed externally), this operation either:
creates a new Webcom account bound to the authenticated identity when it is not known yet,
or retrieves the Webcom account bound to the authenticated identity when it is already known.
In order to perform a multi-factor authentication, context must be set to Context.Current and the user to authenticate must already be authenticated with an other method (or factor).