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

Options
Link copied to clipboard
class Options
Represents some options to pass to a third-party OAuth2 provider.
Provider
Link copied to clipboard
sealed class Provider
List of all available 3rd-party OAuth2 providers.

Functions

authenticate
Link copied to clipboard
fun authenticate(context: AuthenticationService.Context = Context.New, options: OAuth2Method.Options = Options(), callback: WebcomResultCallback<AuthenticationDetails>? = null)
Delegates the authentication of the user to the third-party provider associated with this OAuth2Method instance, using the given options.