DiscoveryStartParameters

data class DiscoveryStartParameters @JvmOverloads constructor(val context: Activity, val oAuthRequestIdentifier: Int, val discoveryRedirectUrl: String? = null, val customScopes: List<String>? = null, val providerParams: Map<String, String>? = null)

A data class wrapping the parameters necessary to start an OAuth flow for a specific provider

Constructors

Link copied to clipboard
constructor(context: Activity, oAuthRequestIdentifier: Int, discoveryRedirectUrl: String? = null, customScopes: List<String>? = null, providerParams: Map<String, String>? = null)

Properties

Link copied to clipboard

the calling Activity for launching the browser

Link copied to clipboard
val customScopes: List<String>? = null

Any additional scopes to be requested from the identity provider.

Link copied to clipboard

The URL that Stytch redirects to after the OAuth flow is completed for the member to perform discovery actions. This URL should be an endpoint in the backend server that verifies the request by querying Stytch's /oauth/discovery/authenticate endpoint and finishes the login. The URL should be configured as a Discovery URL in the Stytch Dashboard's Redirect URL page. If the field is not specified, the default in the Dashboard is used.

Link copied to clipboard

is an ID for the return intent from the OAuth flow

Link copied to clipboard

An optional mapping of provider specific values to pass through to the OAuth provider