Skip to end of metadata
Go to start of metadata

Google+ is another well-known popular social network. It also supports OAuth 2.0 protocol similarly like Facebook. Integration with GateIn Portal consists of two main parts:

  • Registration of GateIn Portal application on Google
  • GateIn Portal configuration

Registration of portal application on Google

These instructions assume that your host is as described in Basic integration steps.

  1. Main google page for developers is From this page, you can go to API console and Register as Google developer if you didn't that already
  2. Click on Create new application and choose some Application name like gatein_google_app (note that it's unique for whole world)
  3. In services tab, you will need to enable Google+ API (See screenshot)
  4. In API Access tab, you need to click on Create new OAuth 2.0 client
  5. In first screen, you need to fill name of product (you can choose any name you want)
  6. In another screen, you need to configure application type as Web application. In section Authorized Redirect URIs you can add more URIs, which will be used as callbacks (returning URIs from Google+ application). For now, it's sufficient to add only
  7. After finish this process, you will see the screen with your Client ID, Client secret and Redirect URIs. Those values will be used later during GateIn Portal configuration.

Actually the process is also described in more details in Google+ documentation

Portal configuration

On portal side, you need to change file and configure properties in Google+ section like:

Description of properties:

  • - This will enable integration with Google. Users will now be able to login and register with Google+
  • - Client ID of your application. This comes from registration on Google as described in previous section
  • - Client Secret of your application.  This comes from registration on Google as described in previous section. Note that client secret should be kept secret and it shouldn't be shared among your portal users or other people.
  • - URL, which will be used by Google to redirect after user confirms Google+ authorization screen (Step 3 of Registration flow). Normally you don't need to change this value as long as you changed property gatein.oauth.portal.url as described in Basic integration steps .
  • - Scopes represents permission, which are required on Google authorization screen from users. This list of scopes will be used during user registration or authentication to GateIn Portal (portlet applications may require more scopes if they need it). It's recommended to not change this value and keep value Alternatively you can:
  • - You can use value offline or online here. Our default value is offline, which means that your access token can be used even if you are not logged in Google+ . It can be also refreshed, which is done automatically by GateIn Portal. More info about access types is here .

After restart of GateIn Portal, your users should be able to register or login with their Google accounts as described in UI flows .

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.