OAuth Provider Setup
Follow these steps if you have not created a Google OAuth client yet.
- Create a Google Cloud account and project if you have not already done so.
- Configure your OAuth consent screen if you have not already done so. More info
- Go to the Google Credentials page for your application. Click on CREATE CREDENTIALS and then select OAuth Client ID.
- Select Web Application as the application type (regardless of if it is a mobile or non-web application) and enter a name for your OAuth client.
- Copy-paste the Redirect URI from the Dashboard into your OAuth configuration under the Authorized redirect URIs section.
- Click create to save the configuration.
- Optional: If you want the Stytch SDK to support Google One Tap, add your application's URI as an Authorized JavaScript Origin. Read more about One Tap.
Follow these steps if you already have an existing Google OAuth client.
- Go to the Google Credentials page for your application. You should see your OAuth client under the OAuth 2.0 Client IDs section.
- Click on the OAuth client to edit its configuration.
- Copy-paste the Redirect URI from the Dashboard into your OAuth configuration under the Authorized redirect URIs section.
- Click to save the configuration.
- Optional: If you want the Stytch SDK to support Google One Tap, add your application's URI as an Authorized JavaScript Origin. Read more about One Tap.
GitHub
Follow these steps if you have not created a Github OAuth client yet.
- Navigate to Github OAuth Applications. For more information, check out Github's Creating an OAuth App guide here.
- Click New OAuth App or Register a new application depending on if you have other applications or not.
- Copy-paste the Redirect URI from the Dashboard into the Authorization callback URL field Fill in remaining fields how you see fit.
Follow these steps if you already have an existing Github OAuth client.
- Navigate to Github OAuth Applications. If you're using an organization OAuth Application, navigate to the organization's Developer Settings tab. Note: this requires admin privileges.
- Click on the application you'd like to use.
- Copy-paste the Redirect URI from the Dashboard into the Authorization callback URL field.
Hubspot
Follow these steps if you have not created a Hubspot OAuth client yet.
- Create or navigate to your Hubspot developer account.
- Go to the "Apps" tab and click "Create app".
- In the "Auth" tab of the App creation screen, scroll down to "Redirect URLs".
- Copy-paste the Redirect URI from the Dashboard and use it to populate a Redirect URL in the App configuration.
- Complete the creation of your App by clicking "Create App" at the bottom of the page.
Follow these steps if you already have an existing Hubspot OAuth client.
- Navigate to your Hubspot account. Go to the "Apps" tab and click on your app.
- Click on the "Auth" tab and scroll down to "Redirect URLs".
- Copy-paste the Redirect URI from the Dashboard and use it to populate a Redirect URL in the App configuration.
Microsoft
Follow these steps if you have not created a Microsoft OAuth client yet.
- Create a Microsoft Azure account if you have not already done so.
- Navigate to Azure Active Directory to create a Microsoft application.
- Click New registration.
- Enter a name for your OAuth client.
- Select "Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)".
- Under the Redirect URI section, select Web and then copy-paste the Redirect URI from the Dashboard into the URI field.
- Click Register to save the configuration.
Follow these steps if you already have an existing Microsoft OAuth client.
- Navigate to Azure Active Directory and select your Microsoft application.
- Ensure that the Supported account types section is set to "All microsoft account users". If it’s not, navigate to the Manifest tab, set the "signInAudience" value to "AzureADandPersonalMicrosoftAccount", and save.
- In your OAuth client configuration, select the link next to the Redirect URIs section. Then select Add a platform and finally select Web.
- Copy-paste the Redirect URI from the Dashboard into the URI field.
- Click Configure to save the URI.
Slack
Follow these steps if you have not created a Slack OAuth client yet.
- Navigate to Slack OAuth Applications. For more information, check out Slack's Creating an OAuth App guide here.
- Select Create New App and choose to create it From scratch. Enter desired App Name and Slack Workspace.
- You will be redirected to the configuration page for your new App. On the left-hand sidebar, navigate to OAuth & Permissions.
- Scroll down to Redirect URLs and click Add New Redirect URL. Copy-paste the Redirect URI from the Dashboard, then click Save URLs.
- In the Scopes section under User Token Scopes add at least the following scopes: users:read, users:read.email.
Follow these steps if you already have an existing Slack OAuth client.
- Navigate to Slack OAuth Applications and select the OAuth App you will be using.
- On the left-hand sidebar, navigate to OAuth & Permissions.
- Scroll down to Redirect URLs and click Add New Redirect URL. Copy-paste the Redirect URI from the Dashboard, then click Save URLs.
- In the Scopes section under User Token Scopes add at least the following scopes: users:read, users:read.email.