authenticate
fun authenticate(context: AuthenticationService.Context = Context.New, callback: WebcomResultCallback<AuthenticationDetails>? = null)
Content copied to clipboard
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.
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 another method (or factor).