How can I configure Google+ Sign In

To setup Google+ Login for Asset Bank, you will need to create a google application and get a client id and secret key. This is needed to identify your Asset Bank and to ask for login permissions from users as a defined application.

To get the needed keys visit the Google Developer Console while you are logged into your Google account and follow these steps.

  1. Click on Create Project
  2. Enter a Project name. You can optionally enter a Project ID or keep the auto-generated one
  3. Click on create, and wait for the project creation activities to finish. You will be redirected to the Project Dashboard page for the project
  4. You must now set a product name. Click on APIs & Auth on the left hand side menu and choose "Consent screen"
  5. Choose an email address from the drop-down
  6. Enter a Product Name in the appropriate field. This can be "[Your brand] Asset Bank" for example, then click on Save
  7. On the left hand side menu click on APIs & auth and then on Credentials
  8. Click on "Create new Client ID" under the section OAuth
  9. Choose "Web application" for Application Type
  10. Replace the content of the Authorised Javascript Origins field with your Asset Bank's URL
  11. Delete the content of the Authorised Redirect URIs as it is not used
  12. Click on "Create Client ID". The Project Dashboard page should now have some additional information on the right hand side
  13. You will need Client ID and Client Secret when configuring Asset Bank, so make sure you have a reference to these values
  14. Click on APIs
  15. Search for Google Plus
  16. Click Enable API

Now that the Application has been created in the developer console, Asset Bank will need to be configured to use it for Google+ Login. You can do this by following these steps:

  1. In your Asset Bank webapp folder, navigate to the folder classes and create a copy of the file GooglePlusSSOSettings-standard.properties called GooglePlusSSOSettings.properties
  2. Edit the file and amend add the rows for client-id and client-secret similar to this snippet:
    client-id=[Client ID created in the previous action]
    client-secret=[Client Secret created in the previous action]
  3. You can optionally set an application-name
  4. Save the changes
  5. Edit the file ApplicationSettings.properties and search for the entry sso-enabled and make sure it's set to true
  6. In the same file search for the entry sso-plugin-class and set the value GooglePlusSSOPlugin and save the file
  7. Restart Asset Bank

If the configuration was successful you should now see a Google+ Sign in button in the login screen. Depending on your configuration, users will be able to click on it for logging in. Visit Options for Single Sign On for more information.


Was this article helpful?

Yes No

Thanks for your feedback!