OAuth

interface OAuth

The OAuth interface provides methods for authenticating a user, via the supported OAuth providers, provided you have configured them within your Stytch Dashboard.

Types

Link copied to clipboard
data class AuthenticateParameters @JvmOverloads constructor(val oauthToken: String, val locale: Locale? = null, val sessionDurationMinutes: Int = DEFAULT_SESSION_TIME_MINUTES)

A data class wrapping the parameters necessary to authenticate an OAuth flow

Link copied to clipboard
interface Discovery

An interface describing the parameters and methods available for authenticating an OAuth Discovery flow

Link copied to clipboard
interface Provider

An interface describing the methods and parameters available for starting an OAuth or OAuth discovery flow for a specific provider

Link copied to clipboard

An interface describing the methods and parameters available for starting an OAuth discovery flow for a specific provider

Properties

Link copied to clipboard

Exposes an instance of the Discovery OAuth implementation

Link copied to clipboard
abstract val github: OAuth.Provider

Exposes an instance of the GitHub OAuth implementation

Link copied to clipboard
abstract val google: OAuth.Provider

Exposes an instance of the Google OAuth implementation

Link copied to clipboard
abstract val hubspot: OAuth.Provider

Exposes an instance of the HubSpot OAuth implementation

Link copied to clipboard

Exposes an instance of the Microsoft OAuth implementation

Link copied to clipboard
abstract val slack: OAuth.Provider

Exposes an instance of the Slack OAuth implementation

Functions

Link copied to clipboard

Authenticate an OAuth flow

Link copied to clipboard