Homepage

Identity provider - Google OAuth

Last edit: Dec 28, 2023

This guide will help you configure and integrate with Google OAuth.

Warning

Using hardcoded OAuth integrations is deprecated, as it does limit your flexibilty to implement business rules. Our recommendation is to use Liquid and GraphQL implement the OAuth per your the requirements. To expedite and unify the process, OAuth module will be available soon.

Requirements

To follow the steps in this tutorial, you should be familiar with Users and Identity Providers. This guide builds on previous tutorials in the Developer Guide: Identity Providers section.

Step 1: Setup OAuth 2.0 in Google

Follow the Setting up OAuth 2.0 tutorial on Google's API Console Help documentation site.

  • In Google, on the Consent Screen set Authorized domains to your Instance domain, for example example.com
  • In Google, when creating credentials, set Authorized redirect url to https://<YOUR_DOMAIN>/auth/google/callback

Step 2: Configure Partner Portal -> Social Integrations

Copy Client ID as Google Key and Client Secret as Google Secret.

Step 3: Use /auth/google on your Instance

For example, you can add a link to the "Log In / Sign Up" Liquid page that points to /auth/google.

Questions?

We are always happy to help with any questions you may have.

contact us