Class OAuth.ProviderDiscovery.DiscoveryStartParameters
-
- All Implemented Interfaces:
public final class OAuth.ProviderDiscovery.DiscoveryStartParametersA data class wrapping the parameters necessary to start an OAuth flow for a specific provider
-
-
Field Summary
Fields Modifier and Type Field Description private final Activitycontextprivate final IntegeroAuthRequestIdentifierprivate final StringdiscoveryRedirectUrlprivate final List<String>customScopesprivate final Map<String, String>providerParams
-
Constructor Summary
Constructors Constructor Description OAuth.ProviderDiscovery.DiscoveryStartParameters(Activity context, Integer oAuthRequestIdentifier, String discoveryRedirectUrl, List<String> customScopes, Map<String, String> providerParams)OAuth.ProviderDiscovery.DiscoveryStartParameters(Activity context, Integer oAuthRequestIdentifier, String discoveryRedirectUrl, List<String> customScopes)OAuth.ProviderDiscovery.DiscoveryStartParameters(Activity context, Integer oAuthRequestIdentifier, String discoveryRedirectUrl)OAuth.ProviderDiscovery.DiscoveryStartParameters(Activity context, Integer oAuthRequestIdentifier)
-
Method Summary
Modifier and Type Method Description final ActivitygetContext()the calling Activity for launching the browser final IntegergetOAuthRequestIdentifier()is an ID for the return intent from the OAuth flow final StringgetDiscoveryRedirectUrl()The URL that Stytch redirects to after the OAuth flow is completed for the member to perform discovery actions. final List<String>getCustomScopes()Any additional scopes to be requested from the identity provider. final Map<String, String>getProviderParams()An optional mapping of provider specific values to pass through to the OAuth provider -
-
Constructor Detail
-
OAuth.ProviderDiscovery.DiscoveryStartParameters
OAuth.ProviderDiscovery.DiscoveryStartParameters(Activity context, Integer oAuthRequestIdentifier, String discoveryRedirectUrl, List<String> customScopes, Map<String, String> providerParams)
-
OAuth.ProviderDiscovery.DiscoveryStartParameters
OAuth.ProviderDiscovery.DiscoveryStartParameters(Activity context, Integer oAuthRequestIdentifier, String discoveryRedirectUrl, List<String> customScopes)
-
OAuth.ProviderDiscovery.DiscoveryStartParameters
OAuth.ProviderDiscovery.DiscoveryStartParameters(Activity context, Integer oAuthRequestIdentifier, String discoveryRedirectUrl)
-
-
Method Detail
-
getContext
final Activity getContext()
the calling Activity for launching the browser
-
getOAuthRequestIdentifier
final Integer getOAuthRequestIdentifier()
is an ID for the return intent from the OAuth flow
-
getDiscoveryRedirectUrl
final String getDiscoveryRedirectUrl()
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.
-
getCustomScopes
final List<String> getCustomScopes()
Any additional scopes to be requested from the identity provider.
-
getProviderParams
final Map<String, String> getProviderParams()
An optional mapping of provider specific values to pass through to the OAuth provider
-
-
-
-