Set up google social login

In order to let your users to sign up & login to your site using google social sign in, you will need 2 things, a key and a secret key, follow the steps bellow in order to configure it.

STEP 1

Go to google cloud console, here: https://console.cloud.google.com/ In the top left, click on Select a project

After that click on New Project

Set a name for your project and click create.

Select your new project and in the left sidebar select APIs & Services and Oauth consent screen

Here select External and after that click Create

Fill the form with your data App name -> you can put the name of your site User support email - > select your email which you have used for this account APP domain -> for all fields write your site, https://example.com (replace with your domain) Authorized domains -> Add Domain, and write your domain Developer contact information -> your email address After that press on Save and Continue

At Scopes add the following scopes: - openid - /auth/userinfo.email - /auth/userinfo.profile And press UPDATE. After adding scopes press SAVE AND CONTINUE.

At Test users we don't need anything, press on Save and continue That's it for now, let's move to the next step.

STEP 2

In the left sidebar select select Credentials

Here select Create credentials and select OAuth client ID

Application type -> Web application Name -> any name you want Authorized JavaScript origins -> nothing to do Authorized redirect URIs -> add https://ipn.EXAMPLE.COM/complete/google-oauth2/, replace EXAMPLE.COM with your domain And click Create

!!!!! You will be prompt with 2 keys, save those keys.!!! Your Client ID -> Is Google Social Login Key Your Client Secret -> Is Google Social Secret key

STEP 3

Go to OAuth consent screen and under Publishing status select Publish App

If a pop-up will appear which will ask for more verification, follow all the steps there to to let google approve your app.

STEP 4

Get the key you created and add them to your affiliate site, after the app google approved your modifications.

Last updated

Was this helpful?