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

Link copied to clipboard
class Options

Represents some options to pass to a third-party OAuth2 provider.

Link copied to clipboard
sealed class Provider

List of all available 3rd-party OAuth2 providers.

Functions

Link copied to clipboard
fun authenticate(context: AuthenticationService.Context = Context.New, callback: WebcomResultCallback<AuthenticationDetails>? = null)

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.