@JvmOverloads 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.
Depending on whether the Webcom Authentication Service already knows the authenticated identity (which is managed externally), this operation either:
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).