> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superblocks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google SSO setup

Superblocks single sign-on (SSO) with Google Workspace lets your team seamlessly authenticate and access Superblocks using their Google credentials. This guide walks through how to configure single sign-on for Superblocks.

## Prerequisites

To setup SSO for your organization, you'll need:

* A Google Workspace account
* Google Workspace administration access
* A Superblocks organization on the **[Enterprise](https://www.superblocks.com/pricing)** plan

## Setup Google Workspace

Set up single sign-on for Google by creating either a **SAML** or **OIDC** application. For full details, see Google's guides for how to:

* [Create a custom SAML app](https://support.google.com/a/answer/6087519)
* [Set up OAuth 2.0 (OIDC)](https://support.google.com/googleapi/answer/6158849)

For the fastest setup and seamless integration with the Superblocks Sign-in with Google experience, [create an OAuth2.0 app](#create-an-oauth-app).

If you plan on using SCIM for user provisioning and group management, [create a SAML app](#create-a-saml-app). Learn more about [Managing users and groups with SCIM](https://docs.superblocks.com/admin/org-administration/auth/scim.md).

### Create an OAuth app

1. Log in to Google Cloud and go to the [**API Console**](https://console.developers.google.com/)

2. Select a Google Cloud project or create a new one

3. Navigate to the **APIs & services** page from the left side menu

4. On the left, click **Credentials**

5. Click **Create Credentials**, then select **OAuth client ID**

6. Select **Web application** as the **Application type**

7. Configure the following settings for your application

   <table>
     <tr>
       <th>Name</th>

       <td>
         **Superblocks**, or a custom name
       </td>
     </tr>

     <tr>
       <th>Authorized JavaScript origins</th>

       <td>
         `https://login.superblocks.com`
       </td>
     </tr>

     <tr>
       <th>Authorized redirect URIs</th>

       <td>
         `https://login.superblocks.com/login/callback`
       </td>
     </tr>
   </table>

8. Click **Create**. A modal will open with your OAuth client information. Keep this modal open and go to the section below to determine [what info to send to Superblocks](#oauth-application).

### Create a SAML app

1. Log in to Google Workspace and go to the **Admin Console**

2. Navigate to **Apps** → **Web and mobile apps**

3. Click **Add App** → **Add custom SAML app**

4. Provide the general information for the integration and click **Continue**

5. On the **Google Identity Provider details** download the **IDP metadata** file, or copy and save the [info to send to Superblocks](#saml-application)

6. Click **Continue**

7. Enter the following information into the **Service Provider Details**

   <table>
     <tr>
       <th>ACS URL</th>

       <td>
         `https://login.superblocks.com/login/callback?connection={CompanyName}-SAML`
       </td>
     </tr>

     <tr>
       <th>Entity ID</th>

       <td>
         `urn:auth0:superblocks-prod:{CompanyName}-SAML`
       </td>
     </tr>

     <tr>
       <th>Name ID format</th>
       <td>EMAIL</td>
     </tr>

     <tr>
       <th>Name ID</th>
       <td>Basic Information > Primary email</td>
     </tr>
   </table>

   Replace `{CompanyName}` with your company's name. Remove all spaces and special characters from the name. If your company name is multiple words, capitalize the first letter of each word.

   For example, the company River Bank Technologies would become `RiverBankTechnologies`.

8. Click **Continue**

9. Click **Add mapping** and configure the following user attributes

   | Google Directory attributes | App attributes |
   | - | - |
   | Primary email | email |
   | First name | givenname |
   | Last name | surname |

10. Click **Finish** and continue to [send your SAML app info to Superblocks](#saml-application).

## Send IDP info to Superblocks

### OAuth application

Send the following information to [support@superblocks.com](mailto:support@superblocks.com). On Cloud-Prem, send it to your Superblocks deployment team instead.

<table>
  <tr>
    <th>Client ID</th>

    <td>
      The public identifier for your client located on the&#x20;
      **General** tab of your application.
    </td>
  </tr>

  <tr>
    <th>Client Secret</th>

    <td>
      The **secret** value shows in the&#x20;
      **CLIENT SECRETS** section. Note: we recommend using a secure
      transfer mechanism such as `https://onetimesecret.com` or similar to send
      the secret.
    </td>
  </tr>

  <tr>
    <th>Google Workspace domain</th>

    <td>
      Google Workspace domain name for your organization.
    </td>
  </tr>

  <tr>
    <th>Domains</th>

    <td>
      A list of domain and domain aliases your employees should be able to use when logging in to Superblocks.
    </td>
  </tr>
</table>

### SAML application

Send the following information to [support@superblocks.com](mailto:support@superblocks.com). On Cloud-Prem, send it to your Superblocks deployment team instead.

<table>
  <tr>
    <th>Connection Name</th>

    <td>
      The connection name you created above and configured in the ACS URL and Entity ID.
    </td>
  </tr>

  <tr>
    <th>SSO URL</th>

    <td>
      The **Identity Provider Single Sign-On URL** provided when you created the SAML app.
    </td>
  </tr>

  <tr>
    <th>X509 Signing Certificate</th>
    <td>The certificate downloaded from the Identity Provider details</td>
  </tr>

  <tr>
    <th>Domains</th>

    <td>
      A list of domain and domain aliases your employees should be able to use when logging into Superblocks.
    </td>
  </tr>
</table>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.