Add Google as an EASIE connection
You will learn the following:
- Use Google to authenticate users with EASIE SSO.
Enabling EASIE SSO with Google allows your users to sign up and sign in to your Clerk application with their Google account.
Configure for your development instance
For development instances, Clerk uses preconfigured shared credentials and redirect URIs—no other configuration is needed.
- In the Clerk Dashboard, navigate to the SSO connections page.
- Select Add connection and select For specific domains or organizations.
- Under EASIE, select Google.
- Enter the Domain. This is the email domain of the users you want to allow to sign in to your application. Optionally, select an Organization.
- Select Add connection.
Configure for your production instance
For production instances, you must provide custom credentials, which involves generating your own Client ID and Client Secret using your Google Developer account.
To make the setup process easier, it's recommended to keep two browser tabs open: one for the Clerk Dashboard and one for your Google Cloud Console.
Enable Google as an EASIE connection
- In the Clerk Dashboard, navigate to the SSO connections page.
- Select Add connection and select For specific domains or organizations.
- Under EASIE, select Google.
- Enter the Domain. This is the email domain of the users you want to allow to sign in to your application. Optionally, select an Organization.
- Save the Redirect URI somewhere secure. Keep this modal open to enter the OAuth credentials in the following steps.
Create a Google Developer project
- Navigate to the Google Cloud Console.
- Select a project or create a new one.
- If the APIs & Services page isn't already open, open the menu on the left and select APIs & Services.
- In the left sidebar, select Credentials.
- Select Create Credentials. Then, select OAuth client ID. You may need to configure your OAuth consent screen.
- Select the appropriate application type for your project. Most likely, you will choose Web application.
- In the Authorized redirect URIs section, select Add URI and paste the Redirect URI value you saved from the Clerk Dashboard.
- Select Create.
Set the Client ID and Client Secret in the Clerk Dashboard
Once the OAuth client is created in the Google Cloud Console, a modal will open with your Client ID and Client Secret. Save these values somewhere secure.
Go back to the Clerk Dashboard, where the modal should still be open, and paste these values into the respective fields. Note that if you have any other Google EASIE connections or a Google social connection, this will update the credentials for all of them. Select Add connection.
Feedback
Last updated on