StartParameters

data class StartParameters(val context: Activity, val oAuthRequestIdentifier: Int, val organizationId: String? = null, val organizationSlug: String? = null, val loginRedirectUrl: String? = null, val signupRedirectUrl: 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, organizationId: String? = null, organizationSlug: String? = null, loginRedirectUrl: String? = null, signupRedirectUrl: 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 an existing user is redirected to after authenticating with the identity provider. This should be a url that redirects back to your app. If this value is not passed, the default login redirect URL set in the Stytch Dashboard is used. If you have not set a default login redirect URL, an error is returned.

Link copied to clipboard

is an ID for the return intent from the OAuth flow

Link copied to clipboard
val organizationId: String? = null

The id of the organization the member belongs to.

Link copied to clipboard

The slug of the organization the member belongs to

Link copied to clipboard

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

Link copied to clipboard

The url a new user is redirected to after authenticating with the identity provider. This should be a url that redirects back to your app. If this value is not passed, the default sign-up redirect URL set in the Stytch Dashboard is used. If you have not set a default sign-up redirect URL, an error is returned.