---
updatedAt: 2026-04-20T20:03:26.000Z
---

# Google social login guide

<p style="align:left"><img src="https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/iconfinder-new-google-favicon-682665.png" width="150"></p>

<br>

[block:callout]
{
  "type": "info",
  "body": "After a security audit uncovered a serious flaw in the Google+ code base, Google made the decision to slowly phase out the service. In turn, the ​Akamai​ Identity Cloud  updated its Google Sign-In IDP so that it no longer relies on Google+ scopes or APIs.",
  "title": ""
}
[/block]

<br>

This configuration guide explains how to enable Google Sign-In as a social login identity provider. *To do this, it is important that you follow the steps outlined in this guide, and largely ignore the instructions provided in the JavaScript SDK (widget)*. The user interface for the JavaScript SDK is outdated and will be replaced shortly. If you look at the JavaScript SDK you’ll see step-by-step instructions for configuring a Google app. For example, this screenshot explains how you must start by enabling the Google API and the Contacts API:

![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/google-callback.png)

That information is no longer correct: you do *not* need to enable those two APIs. Follow the steps detailed in this configuration guide, and don’t worry about the instructions provided in the JavaScript SDK.

<br>

# Before you begin

To use Google Sign-In for social login you must:

1. Obtain a Google developer account from [https://console.cloud.google.com](https://console.cloud.google.com/).

2. Do one of the following:

   * Open a previously-created Google app, and copy the app ID and app secret.
   * Create a new Google app and copy the client ID and client secret.

3. Use the Social Login Dashboard and the Google+ client ID and client secret to configure Google Sign-In as a social login provider.

<br>

# Create a Google Sign-in app

This section walks you through the process of creating a Google Sign-In OAuth client for social login. If you already have a Google OAuth client, see the **Using an Existing Google Sign-In OAuth Client for Social Login** section of this documentation.

To create a Google Sign-in OAuth client, complete the following procedure:

1. Log on to the Social Login Dashboard ([https://dashboard.janrain.com](https://dashboard.janrain.com/)) and then click the **Manage Engage** icon for your application.

2. On your application’s home page, click the **Manage Providers** icon:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/google-providers.png)

3. On the **Configure Providers** page, click **Google** to display the Google configuration dialog box. Click **Next** until you see the screen that shows the **JavaScript Origin** and **Redirect URI** values for your domain:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/1599109005438.png)

4. Make a note of these values or keep this screen displayed while you configure your Google Sign-in client.

5. Type <https://console.developers.google.com/apis/credentials> in the address bar of your web browser and then press ENTER.

6. Log on to the Google Developers Center.

7. On the **Google APIs** page. click **Create Credentials**:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/google-create-credentials.png)

8. In the dropdown list, select **OAuth client ID**:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/google-credentials.png)

9. On the Create OAuth client ID page, click **Application type** and then click **Web application**:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/google-client-type.png)

10. Type a name  for your new OAuth client in the **Name** field:

    ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/google-name.png)

11. In the **Authorized JavaScript origins** section, enter the JavaScript Origin URL you copied from the Social Login dashboard:

    ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/google-javascript.png)

12. In the **Authorized redirect URIs** section, enter the */googleplus/callback* URI you copied from the Social Login dashboard:

    ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/google-redirect.png)

13. Click **Create**.

14. In the **OAuth client created** dialog box, copy and store the client ID and the client secret. These values are required in order to configure Google as a social login provider:

    ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/google-client-created.png)

15. Click **OK**, and then log off from the Google Developers Center.

<br>

# Use an existing Google Sign-in app for social login

If you already have a Google Sign-In OAuth client that can be used for social login, complete the following steps to retrieve the client’s client ID and client secret:

1. Type <https://console.developers.google.com/apis/credentials> in the address bar of your web browser and then press ENTER.

2. Log on to the Google Developers center:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/google-api-page.png)

3. On the **Google APIs** home page, in the **OAuth 2.0 Client IDs** section, click the name of the OAuth client you want to use for social login:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/google-client-ids.png)

4. On the home page for your OAuth client, copy and store the client ID and client secret:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/google-id-secret.png)

5. Log off from the Google Developers Center.

<br>

# Configure Google Sign-In as a social login provider

To configure Google Sign-In as a social login provider, make sure you have your Google Sign-In client ID and client secret, and then complete the following procedure:

1. Log on to your Social Login Dashboard ([https://dashboard.janrain.com](https://dashboard.janrain.com/)).

2. From the Dashboard home page, click the **Manage Engage Dashboard** icon.

3. From the Engage Dashboard home page, in the **Widgets and SDKs** section, click **Sign-Ins**.

4. From the **Sign-in** page, verify that **Widget** is selected and then expand Providers:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/configure-layout.png)

5. From the list of **Providers**, click **Google**:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/providers-list.png)

6. In the **Google** dialog box, click **Next** until you reach the screen requesting the Google **Client ID** and **Client Secret**:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/copy-id-and-secret.png)

7. Enter your Google client ID in the **Client ID** field, enter your Google client secret in the **Client Secret** field, click **Save**, and then click **Close**. Google appears in your social login widget:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/configured-providers.png)

8. When you are finished, select **Save**. Note that it might take as long as one hour before Google appears as a social login option on your web site.

If you are configuring Google for the first time, be sure that you skip the **Configure\*\*\*\*Providers**screen:

![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/configure-layout.png)

Much of the information shown on this screen (information previously available through Google+) is *not* provided by Google Sign-In; perhaps more important, requesting information that Google Sign-In does not provide can lead to problems when a user tries to log on with a Google account. *We recommend that you do not enable any of the options on this screen*. 

But what if you’ve already selected some of these options? For example:

![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/contacs-selected.png)

In that case, we recommend that you deselect each of the selected values:![](images/contacts-not-selected.png)

The **Configure Providers** screen will be updated in a subsequent release of the Social Login dashboard.

<br>

# Test Google Sign-In social login

To test Google Sign-In social login, complete the following procedure:

1. Do one of the following:

   * If you have just published your widget settings, click the **Test your widget** link that appears after the widget has been saved.

   * If you previously published your widget settings then, from the Engage Dashboard **Sign-in** page, click **Launch a test widget**.

2. From the **Test** page, click the **Google** icon:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/test-widget.png)

3. In the sign-in window, enter your Google account email address in the **Email or phone** field and then click **Next**:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/sign-in-dialog-1.png)

4. Enter your Google account password in the **Enter your password** field and then click **Next**.

If login succeeds, information returned from the Google profile is displayed in the **API response preview** field:

![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/api-response.png)

By default, your Google app returns information similar to the following:

[block:code]
{
  "codes": [
    {
      "code": "{\n  \"stat\": \"ok\",\n  \"profile\": {\n    \"displayName\": \"Greg Stemp\",\n    \"email\": \"greg.stemp@janrain.com\",\n    \"googleUserId\": \"117224169092709847855\",\n    \"identifier\": \"https://www.google.com/profiles/117224169092709847855\",\n    \"name\": {\n     \"familyName\": \"Stemp\",\n      \"formatted\": \"Greg Stemp\",\n      \"givenName\": \"Greg\"\n    },\n    \"photo\": \"https://lh6.googleusercontent.com/-FW0NohhRtPA/AAAAAAAAAAI/AAAAAAAAAAA/ACevoQPqePkQn1FaNn6Sr\\_seAX\\_q5yjoiQ/mo/photo.jpg&sz=400\",\n   \"preferredUsername\": \"greg.stemp\",\n   \"providerName\": \"Google\",\n   \"providerSpecifier\": \"google\",\n    \"provider\\_id\": \"117224169092709847855\",\n   \"verifiedEmail\": true\n  },\n \"accessCredentials\": {\n    \"accessToken\": \"ya29.GluuBsaoGkvwPl5wq3ttHGsqrF4-y2hOF3UB0pKGoszm3WMBGt5skhgTwlEWc0hjmhT7Rs4oXXUDmYKEI8amsFcVArWtjqgjqvaSfSqrhVTLw4HZnPIBX2McuY76\",\n    \"clientId\": \"737258797307-t9s04713f9plcga91rau7qodmrpknl57.apps.googleusercontent.com\",\n    \"expires\": 1550000156,\n   \"refreshToken\": \"1/EQxGgmp4zh9ZTV1p6ooEtVQsygvQbmVT4DNu79DOVOcmXoJClWnH6C1QOKLmvzpK\",\n    \"scopes\": \"openid\",\n    \"type\": \"openidconnect\",\n    \"uid\": \"117224169092709847855\"\n  }\n}",
      "language": "json"
    }
  ]
}
[/block]

<br>

# Assign a different Google Sign-In app for social login

If you want to use a different Google Sign-In app or if you need to change your existing app, you must update the Google Sign-In provider configuration settings. To do that, complete the following procedure. When doing this, keep in mind that, even though the Dashboard UI says **Google+**, you are actually configuring Google Sign-In

1. From the Engage Dashboard home page, click the **Manage Providers** icon:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/providers-icon.png)

2. From the **Configure Providers** page, click **Google+**.

3. Click the green **Configured** button to display the **Google is currently enabled** dialog box:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/google-is-enabled.png)

4. To change the Google+ configuration, click **Modify These Settings**.

5. In the **Google** dialog box, change the **Client ID** and/or **Client Secret** as needed, and then click **Save**:

   ![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/add-id-and-secret.png)

6. Click **Close**.

Although you can modify your Google Sign-In settings, you cannot delete those settings. If you delete the settings and then try to save your changes, you’ll see the following error message:

![](https://techdocs.akamai.com/identity-cloud/img/social-login/identity-providers/enter-id-and-secret.png)

This means that you cannot “unconfigure” the provider: once configured, the Google+ icon will always be shown as green (i.e., configured) in the Social Login Dashboard.

<br>

# Remove Google Sign-In as a social login provider

If you no longer want to use Google Sign-In for social login, you can remove Google Sign-In as a social login provider by completing the following procedure:

1. Log on to your Social Login Dashboard ([https://dashboard.janrain.com](https://dashboard.janrain.com/)).

2. From the Dashboard home page, click the **Manage Engage Dashboard** icon.

3. From the Engage Dashboard home page, in the **Widgets and SDKs** section, click **Sign-Ins**.

4. From the **Sign-in** page, verify that **Widget** is selected and then expand **Providers**.

5. In the widget, click the **X** in the upper right corner of the Google icon.

6. Scroll to the bottom of the page, select **Save and Publish**, and then click **Publish**. Google no longer appears in the sign-on widget.

<br>

[block:callout]
{
  "type": "info",
  "body": "You must always have at least one social login provider in the widget. If you delete all the providers and then click **Publish**, you’ll see the error message **Couldn’t save configuration: No providers**.",
  "title": ""
}
[/block]

# Sibling pages

* [Amazon social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-amazon-social-login-configuration-guide.md)
* [Sign-in with Apple social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-sign-in-with-apple-social-login-configuration-guide.md)
* [DocCheck social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-doccheck-social-login-configuration-guide.md)
* [Doximity social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-doximity-social-login-configuration-guide.md)
* [Facebook social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-facebook-social-login-configuration-guide.md)
* [Flickr social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-flickr-social-login-configuration-guide.md)
* [Instagram social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-instagram-social-login-configuration-guide.md)
* [LINE social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-line-social-login-configuration-guide.md)
* [Retrieve user information with LINE Profile+](https://techdocs.akamai.com/identity-cloud/docs/retrieve-user-information-with-line-profile.md)
* [LinkedIn OAuth 2.0 social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-linkedin-oauth-20-social-login-configuration-guide.md)
* [LiveJournal social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-livejournal-social-login-configuration-guide.md)
* [MediKey social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-medikey-social-login-configuration-guide.md)
* [Microsoft Online social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-microsoft-online-social-configuration-guide.md)
* [Microsoft Active Director Federation Services social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-microsoft-active-director-federation-services-social-login-configuration-guide.md)
* [Okta social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-okta-social-login-configuration-guide.md)
* [PayPal social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-paypal-social-login-configuration-guide.md)
* [Ping social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-ping-social-login-configuration-guide.md)
* [QQ social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-qq-social-login-configuration-guide.md)
* [Renren social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-renren-social-login-configuration-guide.md)
* [Sina Weibo social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-sina-weibo-social-login-configuration-guide.md)
* [Snapchat social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-snapchat-social-login-configuration-guide.md)
* [swiss-rx social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-swiss-rx-social-login-configuration-guide.md)
* [Twitter social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-twitter-social-login-configuration-guide.md)
* [VMware Identity Manager social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-vmware-identity-manager-social-login-configuration-guide.md)
* [WeChat social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-wechat-social-login-configuration-guide.md)
* [Yahoo! Japan social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-yahoo-japan-social-login-configuration-guide.md)
* [Yahoo! OAuth 2.0 social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-yahoo-oauth-20-social-login-configuration-guide.md)
* [Yahoo! social login guide](https://techdocs.akamai.com/identity-cloud/docs/the-yahoo-social-login-configuration-guide.md)