Skip to content

Creating an OAuth 2.0 client to enable sign in using Google

Vishal Telangre edited this page Jan 5, 2020 · 1 revision

To allow sign-in using Google, we need to first create an OAuth 2.0 client in Google's API console.

Here are the steps to create an OAuth 2.0 client and obtain its client ID and client secret that can be provided to Wassup to enable sign-in using Google.

 

  1. Navigate to Google API console and create a new project - https://console.developers.google.com/projectcreate.

    01  New Project – Google API Console

  2. Go to the Credentials link under the sidebar by ensuring that we have selected the right project that we just created in the above step. Click on the Create Credentials link at the top.

    02  Credentials – APIs   Services – wassup – Google API Console
  3. Select OAuth client ID from the dropdown menu.

    03  Credentials – APIs   Services – wassup – Google API Console
  4. Enter the necessary details. Here's how client configurations would look like at the end. Make sure to enter the appropriate redirect URI(s).

    04  Client ID for Web a… – APIs   Services – wassup – Google API Console
  5. Set the environment variables GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET and GOOGLE_REDIRECT_URI (in the .env file) accordingly with the values obtained for Client ID and Client secret from the above step.

Clone this wiki locally