# Google Workspace

**Overview**

This guide outlines the steps needed to configure Google Workspace so that users can authenticate through Google using their corporate credentials when accessing Protege AI managed by Auth0.

reference: <https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/google-apps#set-up-your-app-in-google>

#### **Step 1: Set Up Your App in Google**

1. **Access Google Cloud Console:**
   * Go to the [Google Cloud Console](https://console.cloud.google.com/).
   * Sign in with your Google account.
2. **Select an Existing Project or Create a New Project:**
   * In the Google Cloud Console, click on the project dropdown in the top menu and select **New Project**.
   * Name your project and click **Create**.
3. **Enable OAuth Consent Screen:**
   * In the navigation menu, go to **APIs & Services** > **OAuth consent screen**.
   * Choose **Internal** for users within your organization.
   * Fill out the required fields such as **App Name**, **User Support Email**, and **Developer Contact Information**.
   * Add [`auth0.com`](http://auth0.com/) in **Authorized domains** and click **Save and Continue**.
4. **Create OAuth Credentials:**
   * Go to **APIs & Services"** > **Credentials**.
   * Click **Create Credentials** and select **OAuth 2.0 Client ID**.
   * Choose **Web application** as the application type.
   * Provide a name for your OAuth client.
   * Under **Authorized JavaScript origins**, add the following url <https://app.protegecounsel.ai/>
   * Under **Authorized redirect URIs**, add the following url <https://protegeai.us.auth0.com/login/callback>
   * Click **Create**.
5. **Retrieve Client ID and Client Secret:**
   * After creating the OAuth 2.0 Client ID, you will be presented with your **Client ID** and **Client Secret**.
   * Copy these values and share with us for later use in your SSO configuration.<br>

     <figure><img src="/files/L8YWhKtQn3vDiHLjKsrT" alt=""><figcaption></figcaption></figure>

#### **Step 2: Obtain Your Primary Domain from Google Admin Console**

1. **Access Google Admin Console:**
   * Go to the [Google Admin Console](https://admin.google.com/).
   * Sign in with your administrator account.
2. **Navigate to Domains Management:**
   * From the Admin console homepage, go to **Account** > **Domains** > **Manage domains**.
3. **Copy the Primary Domain:**
   * Your primary domain will be listed here. Copy the domain name and share with us as it will be required during the SSO configuration process.<br>

     <figure><img src="/files/HI211QQAK2s9oC0Fr33v" alt=""><figcaption></figcaption></figure>

The two steps above are all you need to complete on your side. Once we have the Client ID, Client Secret, and Primary Domain, our team will handle the remaining setup. We will inform you shortly once the integration is ready for use.\
\
\&#xNAN;***Note:*** If you experience any issues during the linking process or have questions related to Single Sign-On (SSO) integration, please reach out to our support team at <founders@tryprotege.com>. We are available to assist you and ensure a seamless integration with your authentication system.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.tryprotege.com/review/enterprise-features/enterprise-sso/google-workspace.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
