Google SAML Setup

Learn how to configure Opal to authenticate users via Google SAML SSO.

You can set up Opal to allow or require users to log in via Google SAML SSO.

Setup

  1. When logged into Google Workspace as an administrator, click on Apps on the left sidebar and then Web and mobile apps.

  1. Click on Add App and then Add custom SAML app

  1. Name your SAML app Opal. You can use this brand asset as the app icon. When ready, click Continue.
  2. Copy the value of the SSO URL field
  3. In the Authentication section of the Opal Admin UI, click Setup and input the SSO URL into the Identity Provider SAML 2.0 SSO URL (HTTPS) field
2262 2262
  1. Download the Google IDP public certificate by clicking on the down arrow button next to the certificate.

  1. Upload the certificate with the Upload Certificate button in the Opal Admin page
2262
  1. Click Save Changes to save this data to Opal.
  2. Then copy the ACS URL and Entity ID values in the Opal Admin page to the corresponding ACS URL and Entity ID fields in the Google SAML app creation page.

  1. Click Continue.
  2. In the Attribute Statements page, input given_name, family_name, and email as First name, Last name, and Email, respectively, like in the following image:

  1. Click Finish to complete the creation of the Google SAML app.
  2. Then turn on the SAML app by clicking on OFF for everyone in the SAML app page then clicking ON for everyone then Save.

Testing login via SAML

  1. Navigate to Opal, then log out of your Opal account.
  2. Click on Continue with SAML on the Opal login screen.
  3. Manually type your email address in the Email field. This email must have the same domain name as whoever created the SAML app in the Opal UI earlier (e.g. if [email protected] created the SAML integration, the SAML integration will be tied only to users with the opaltest.com domain).
  4. Then click Continue with SAML.
  5. This should prompt you to log in with Google.
  6. You may arrive at this linking screen (below). If so, you should click continue and log in with the account corresponding to your email address.
804
  1. At this point, you should be able to log into Opal!

Test IDP initiated flow from Gmail

  1. Login to Gmail
  2. On the upper right corner, click on Google Apps (button with many dots) then Opal

  1. This should prompt you to log in with Google.
  2. At this point, you should be able to log into Opal!

Common issues

Adding a SAML connection in Google and enabling it for your users can take up to 24 hours to propagate. As a result, sometimes there are caching issues after adding a new SAML connection.

Manifestations of this problem include any of the following:

  • 403 app_not_configured
  • 403 not_a_saml_app
  • 500

In some cases these caching issues can be circumvented by clearing browser state for Opal and Google, or trying the login in an Incognito browser tab or a new browser entirely. But the most consistent fix is to simply wait up to 24 hours for the problem to go away.