Class SSO.GetTokenForProviderParams

  • All Implemented Interfaces:

    
    public final class SSO.GetTokenForProviderParams
    
                        

    Data class used for wrapping parameters to start a third party OAuth flow and retrieve a token

    • Constructor Detail

      • SSO.GetTokenForProviderParams

        SSO.GetTokenForProviderParams(String connectionId, String loginRedirectUrl, String signupRedirectUrl)
      • SSO.GetTokenForProviderParams

        SSO.GetTokenForProviderParams(String connectionId, String loginRedirectUrl)
      • SSO.GetTokenForProviderParams

        SSO.GetTokenForProviderParams(String connectionId)
    • Method Detail

      • getLoginRedirectUrl

         final String getLoginRedirectUrl()

        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.

      • getSignupRedirectUrl

         final String getSignupRedirectUrl()

        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.