Google

Skip to end of metadata
Go to start of metadata

 

This page is a step-by-step guide for the process of opening and setting up an external Google application as part of the Gigya Setup process.

Note: If your site is defined under one of Gigya's non-US data centers, replace domain references to (http:// or https://) "socialize.gigya.com" (or "socialize.us1.gigya.com") with https://socialize.<data_center>/

Where <Data_Center> is:
  • us1.gigya.com - For the US data center.
  • eu1.gigya.com - For the European data center.
  • au1.gigya.com - For the Australian data center.
  • ru1.gigya.com - For the Russian data center.
  • cn1.gigya-api.cn - For the Chinese data center.

If you are not sure of your site's data center, see Finding Your Data Center.

Domain references are defined in Gigya's dashboard, externally in social network app definition pages, and when using Gigya's SDKs to set the domain (in particular the APIDomain field in class GSRequest). 

When using any 3rd Party Apps with Gigya, it is important to ensure that you Enable retrieving user contacts from the Permissions page of the Console prior to making your app live. This enables basic username and email retrieval for your users from providers that don't consider this an elevated permission.

 

Phase 1 - Setting up a Google Application

Creating a project

  1. Go to the Google Developers Console at https://console.developers.google.com.
  2. Open the 'Project' menu and select 'Create project'.
  3. In the "New Project" box:
    • Enter a project name.
    • Select whether or not to receive updates from Google. 
    • Read and confirm the terms of service. 
    • Click "Create". 

Selecting your APIs for use with Gigya 

  1. In the Library tab of the API Manager, select "Google+ API" (under 'Social APIs').

  2. On the following page press the ENABLE button.

  3. Return to the Library tab, click the "More" link under the "Google Apps APIs" section and select "Contacts API".

  4. Press the "Enable" button on the next page to activate the Contacts API.

Get your Google credentials

  1. In the left-hand menu, select "Credentials". 
  2. Click Create credentials and select OAuth client ID from the drop-down.




  3. You will see a notice that you must first set a product name on the consent screen. Click the blue button to Configure consent screen.



  4. Enter the name of your product or service in the applicable field and press Save.



  5. Select Web application as the Application type. This will open the URL options.

  6. In the Authorized JavaScript origins field, enter the URL of the website that will be hosting the App (your website).


  7. In the Authorized redirect URIs field, enter the following and press Create.

    • If using Gigya - http://socialize.gigya.com/GS/GSLogin.aspx? and https://socialize.gigya.com/GS/GSLogin.aspx? (one per line)
    • If using a CName - http(s)://<CNAME>/GS/GSLogin.aspx?



  8. A window will appear with your client ID and Secret. Copy the information for use below, then click OK.



  9. (This step is only for first time users) - On the page that opens, fill in:
    • Your email address
    • Your app's product name
    • Additional optional fields (e.g., Homepage URL, Product logo URL, Privacy Policy).
  10. Your credentials are now ready.

 

Phase 2 - Configuring Google Application Keys in Gigya's Website

Setting your keys in the Google Configuration Editor

  1. Log into your Gigya account and go to the Providers Configurations page.
  2. Click on the Google logo to open its configuration window.

  3. In the Google Configuration window enter:
    • Your "Client ID" from the Google Developers Dashboard into the "Consumer Key" field. (The entire string, including .apps.googleusercontent.com)
    • Your "Client Secret" into the "Secret Key" field.
    • If you are using a CNAME, be sure to check the "Enable CName" checkbox.
    • Checking "Enable Native SDK Capabilities" is required to enable automatic login. For more information see Native SDK Capabilities.
  4. Click "OK".
  5. Click "Save Settings" on the bottom right-hand corner.

 

That's it, Google configuration is complete! Please note that it might take up to 10 minutes for our system to become synchronized with Google.

Unable to render {include} The included page could not be found.