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 ProviderDiscovery
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
Exposes an instance of the GitHub OAuth implementation
Link copied to clipboard
Exposes an instance of the Google OAuth implementation
Link copied to clipboard
Exposes an instance of the HubSpot OAuth implementation
Link copied to clipboard
Exposes an instance of the Microsoft OAuth implementation
Link copied to clipboard
Exposes an instance of the Slack OAuth implementation
Functions
Link copied to clipboard
abstract suspend fun authenticate(parameters: OAuth.AuthenticateParameters): OAuthAuthenticateResponse
abstract fun authenticate(parameters: OAuth.AuthenticateParameters, callback: (OAuthAuthenticateResponse) -> Unit)
Authenticate an OAuth flow
Link copied to clipboard
abstract fun authenticateCompletable(parameters: OAuth.AuthenticateParameters): CompletableFuture<OAuthAuthenticateResponse>
Authenticate an OAuth flow