> For the complete documentation index, see [llms.txt](https://drsoft.gitbook.io/affiliates/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://drsoft.gitbook.io/affiliates/white-label/affiliates-tutorial/set-up-google-social-login.md).

# Set up google social login

## **STEP 1**

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

![](/files/Kn3MjEptTApajvdEo9bf)\
After that click on **New Project**

![](/files/AalHMoX7CL95kKi9Scq7)

Set a name for your project and click create.

![](/files/C8yWlyp0jD03elZY7yVD)

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

![](/files/B3saXaAN0gtYxIXRT2SN)

Here select **External** and after that click **Create**

![](/files/FqjzWdctpW03RFx5KUGV)

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**\
![](/files/4adnyyvDUBdwafanVaZ0)

At **Scopes** add the following scopes:\
\&#xNAN;**-** **openid**\
**- /auth/userinfo.email**\
**- /auth/userinfo.profile**\
And press **UPDATE**.\
After adding scopes press **SAVE AND CONTINUE.**

![](/files/sMhmfDHptYij0RziNVwx)

![](/files/jfBYP3baotjEDbj0USOA)\
\
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**

![](/files/reBitkIWFtRTpAm0HqLC)

Here select **Create credentials** and select **OAuth client ID**

![](/files/HyCRB8sSHYWJeVwnWaNU)

**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**

![](/files/yxjQxFiVgPF7WKT0cvOi)

!!!!! 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**<br>

## **STEP 3**

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

![](/files/OMcr4hESVEikPny2feZm)\
\
If a pop-up will appear which will ask for more verification, follow all the steps there to to let google approve your app.<br>

## **STEP 4**

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