Google sign-in

Add Google sign-in as an authentication method to Integrity Web

Let your consumers use their existing Google account to sign in to any service protected by Integrity Web.

Guide prerequisite:

  • Integrity Web installed

  • DNS-name and certificates in place for the Integrity Web https-host

  • Enterprise google admin account (for production purposes, for test you may use your own private google account)

Add authentication method

Add this configuration to the Authn module in the configuration:

Change the DNS host name of the redirect_uri to match your environment. Copy the value of the redirect_uri as this will be used in a later step.

Google configuration

  1. Sign in to Google. (For testing purposes, you may use your private google email account. For production, please use a proper Google administrator account)

  2. Create a new project.

  3. Enter a project name, such as Integrity

  4. Create

  5. When the project is created, a page called API and Services will load.

  6. Select Credentials

  7. Create Credentials -> OAuth client ID

  8. Choose Application Type = Web application

  9. Enter a name. such as Integrity

  10. Below Authorized redirect URIs, Click Add URI

  11. Enter the value copied in previous step.

  12. Create

  13. Copy the Client ID and the Client secret values presented. These will be used in later step.

Add client credentials

  1. Open the Integrity Web configuration

  2. Locate the Google Authentication method added in previous step

  3. Replace the client_id and client_secret values with the values copied in previous step.

Example:

Test

Alter the configuration to point to the new google authenticator, either directly or as a selector option.

Browse to the service protected by Integrity Web.

Select Google as authentication method.

Your browser should now be redirected to Google.

Enter your google credentials and approve the authentication.

You should now be redirected back to Integrity and then to the service with a valid authentication.

Use server.log for error tracing and debugging. Fix accordingly and test again.

Sample configuration

A sample Integrity Web configuration, including a number of different social provider sign-in options, can be downloaded here.

Last updated