Identity provider - Google OAuth
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
setAuthorized domains
to your Instance domain, for exampleexample.com
- In Google, when creating credentials, set
Authorized redirect url
tohttps://<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
.