Heroku cloud application

You must be signed in as a super administrator for this task.

With Security Assertion Markup Language (SAML), your users can sign in to enterprise cloud applications with their Google Cloud credentials.

Set up SSO via SAML for Heroku®

Step 1: Set up Google as a SAML identity provider (IdP)
Sign in to your Google Admin console.

Sign in using an account with super administrator privileges (does not end in @gmail.com).

  1. From the Admin console Home page, go to Appsand thenSAML apps.
  2. Click the plus (+) icon at the bottom right. 
  3. Locate and click Heroku in the application list.
  4. On the Google IDP Information page, download the IdP Metadata.
  5. Click Next.

    The Basic information window shows the Application name and Description seen by users.

  6. Click Next.

    On the Service Provider Details page, the ACS URL and Entity ID fields are automatically populated.

  7. Replace the occurrences of {heroku-team-name} in the fields with your team name as registered on Heroku. 
  8. The default Name ID is the primary email. 
  9. Leave the Name ID Format as Email.
  10. Click Finish.
Step 2: Set up Heroku as a SAML 2.0 service provider (SP)
  1. Open a new incognito browser window.
  2. Sign in to your Heroku application with your organization's Heroku administrator account.
  3. In the Heroku home page, click Settings to open Settings.

  4. Select the Team for which you want to enable single sign-on (SAML2).

  5. Click Settings.

  6. Under Single Sign-on (SSO), click Upload Metadata and upload the IdP Metadata file you downloaded in step 1.

Step 3: Enable the Heroku app
  1. Sign in to your Google Admin console.

    Sign in using your administrator account (does not end in @gmail.com).

  2. From the Admin console Home page, go to Appsand thenSAML apps.
  3. Select Heroku.
  4. At the top right of the gray box, click Edit Service Compose.

  5. To turn on or off a service for everyone in your organization, click On for everyone or Off for everyone, and then click Save.

  6. To turn on or off a service only for users in an organizational unit:

    1. At the left, select the organizational unit.
    2. Select On or Off.
    3. To keep the service turned on or off even when the service is turned on or off for the parent organizational unit, click Override.
    4. If the organization's status is already Overridden, choose an option:
      • Inherit—Reverts to the same setting as its parent.
      • Save—Saves your new setting (even if the parent setting changes).

    Learn more about organizational structure.

  7. (Optional) Turn on the service for a group of users.
    Use access groups to turn on a service for specific users within or across your organizational units. Learn more

  8. Ensure that your Heroku user account email IDs match those in your Google domain.
Step 4: Verify that the SSO is working
  1. Close all browser windows.
  2. Open https://sso.heroku.com/saml/heroku-team-name/init. You should be redirected to the Google sign-in page.
  3. Enter your user name and password.

After your credentials are authenticated, you are redirected back to Heroku.

Was this helpful?
How can we improve it?