> ## Documentation Index
> Fetch the complete documentation index at: https://converge-enter-documentation.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure Google sign-in for your app

Google sign-in lets visitors sign in to your app with their Google account through Supabase-hosted authentication, the hosted sign-in service used by the app. Create an OAuth client—Google credentials that identify the app—in Google Cloud, then paste its **Client ID** and **Client Secret** into Enter. OAuth is the standard way an app asks Google to confirm who a user is. During sign-in, a nonce is a one-time value used to prevent replay.

```mermaid theme={null}
flowchart TD
  A[Google Cloud project] --> B[Branding and Audience: External]
  B --> C[Test user and 3 scopes]
  C --> D[Web application client]
  D --> E[Copy Client ID and secret]
  E --> F[Enter: Providers > Google]
  F --> G[Test sign-in]
```

**Before you start,** make sure you can open the **Google Provider** settings in Enter and create or manage a project in Google Cloud.

> [!CAUTION]
>
> **Treat the Client Secret like a password.** Store it securely. Don't commit it to Git or put it in frontend code, chat, documentation, or screenshots.

## Step 1 · Check what you already have

Go to **Project → Cloud → Authentication → Providers → Google** to see if a Client ID and Client Secret are already set.

![Google Provider settings with enable switch, Client IDs, and Client Secret fields](https://mintcdn.com/converge-enter-documentation/M67gKYEaJiF8mf9Q/images/enter-help/3.8/google-provider.png?fit=max\&auto=format\&n=M67gKYEaJiF8mf9Q\&q=85\&s=73de975f54824ef457c4400e10b4a697)

Check the enable switch, Client IDs, and Client Secret (for OAuth).

You can also ask Enter: "Help me integrate Google sign-in." Enter opens a dialog for the credentials.

| Your situation | What to do |
| - | - |
| You have the Client ID and the full Client Secret | Skip to **Step 8**. You don't need a new OAuth client. |
| You have the Client ID but lost the secret | See Troubleshooting to add a new secret, then update Enter. |
| You have no Web application client | Continue with Step 2. |

## Step 2 · Create a separate Google Cloud project

In Google Cloud Console, click the project name in the top bar. In the **Select a resource** dialog, click **New project** in the upper-right corner. Set a **Project name**, for example "Enter External OAuth Demo". For **Organization** and **Parent resource**, choose one you can manage. These decide who owns the project, not who can sign in. Click **Create**, then switch to the new project from the notification.

> [!NOTE]
>
> The form may suggest a **Project ID** as you type. Use your final Project ID when you navigate the console later.

## Step 3 · Set up branding

Check that the top bar shows your project name. When **Google Auth Platform** says **not configured yet**, click **Get started**. The wizard has four parts: **App Information → Audience → Contact Information → Finish**.

1. In **App Information**, enter an **App name** and choose a real, reachable **User support email**. Click **Next**.
2. In **Audience**, select **External** and click **Next**. Don't choose **Internal**, which is only for users inside your Google organization. External is for accounts outside it and creates no Gmail account.
3. In **Contact Information**, enter a real developer email that can receive Google notifications. Press Enter to make it an entry, then click **Next**.
4. In **Finish**, read the Google API Services User Data Policy, check the agreement box, click **Continue**, then click **Create**.

## Step 4 · Keep the app in Testing and add a test user

Open **Audience** in the left navigation. Check that **Publishing status** is **Testing** and **User type** is **External**. Don't click **Make internal** or **Publish app**.

![Google Auth Platform Audience page showing Testing status and External user type](https://mintcdn.com/converge-enter-documentation/Dl1DSbRP-YuWE4KM/images/enter-help/3.8/google-audience.png?fit=max\&auto=format\&n=Dl1DSbRP-YuWE4KM\&q=85\&s=b658b4163da9696bce83c67fae58e981)

Check that Publishing status is Testing and User type is External.

Under **Test users**, click **Add users**. Enter the Gmail account you'll test with, press Enter to make it an entry, and click **Save**.

## Step 5 · Add only three identity scopes

Scopes are permissions requested from Google. Open **Data Access** and click **Add or remove scopes**. Select only these three. Don't select the header checkbox or add Gmail, Drive, BigQuery, or cloud-platform permissions.

```plaintext theme={null}
openid
https://www.googleapis.com/auth/userinfo.email
https://www.googleapis.com/auth/userinfo.profile
```

Scroll down in the panel, click **Update**, then click **Save** on the main page. **Update** alone doesn't save. The three scopes then appear under **Your non-sensitive scopes**, and the sensitive and restricted lists stay empty.

## Step 6 · Create a Web application client

Open **Clients → Create client**. Set **Application type** to **Web application** (not **Desktop app**). Set **Name** to something like "Enter External Web Login". It's only a label.

1. Leave **Authorized JavaScript origins** empty. This setup uses a redirect flow.
2. Under **Authorized redirect URIs**, click **Add URI** and paste the full callback URL from your project's own Google Provider page in Enter. Include the scheme, host, and path ending in `/auth/v1/callback`. Don't use your website's homepage.
3. Leave **Use this client for an AI-powered agent** unchecked.
4. Click **Create**.

![Google OAuth client form with Web application type, no JavaScript origins, and an authorized redirect URI](https://mintcdn.com/converge-enter-documentation/M67gKYEaJiF8mf9Q/images/enter-help/3.8/google-create-client.png?fit=max\&auto=format\&n=M67gKYEaJiF8mf9Q\&q=85\&s=e093dab9831d796f2a02e64b50f8cdda)

Check the Web application type, empty JavaScript origins, and the redirect URI.

## Step 7 · Copy the Client ID and Client Secret

In the **OAuth client created** dialog, use the copy button next to **Client ID** and **Client secret**, or click **Download JSON** for both.

> [!CAUTION]
>
> **Save the secret before you close the dialog.** Google shows the full secret only once. Afterwards only the last four characters show, and the original can't be recovered.

If you downloaded the JSON file, check that **project\_id** is your project, **client\_secret** has a value, and **redirect\_uris** matches the callback URL exactly. Keep the file in a secret manager or other secure place only authorized people can open. Then click **OK**. The **Clients** list should show your client with type **Web application**.

## Step 8 · Add the credentials to Enter and test

1. Go back to **Project → Cloud → Authentication → Providers → Google**, or use the dialog from "Help me integrate Google sign-in."
2. Enter the Client ID in **Client IDs** and the matching secret in **Client Secret**. Save the configuration.
3. Test the full Google sign-in flow in your app before you share it.

> [!TIP]
>
> **Setup is done when** Enter has the matching credentials saved and Google sign-in works in your app. Keep the secret server-side, never in browser code.

## Limitations

* A test user doesn't block other accounts. With only the `openid`, `userinfo.email`, and `userinfo.profile` scopes, Google lets people sign in even if they aren't on the test-user list. Your app must enforce its own access rules. See [Google's guidance](https://support.google.com/cloud/answer/15549945).
* This redirect-flow setup leaves **Authorized JavaScript origins** empty. If you later add browser-side sign-in such as Google Identity Services or One Tap, you may need to set origins.

## Troubleshooting

> [accordion] I lost the Client Secret, or closed the dialog before copying it
>
> Google shows the full secret only once. In Google Cloud Console, go to **Google Auth Platform → Clients** and open your **Web application** client. Choose **Add Secret**, copy or download the new secret right away, and update Enter.

> [accordion] My three scopes are not listed after I added them
>
> Click **Update**, then click **Save** on the main page.

> [accordion] I am not sure the callback URL is right
>
> Use the full callback URL from your project's Google Provider page in Enter under **Authorized redirect URIs**, not your website's homepage.

## Common questions

> [accordion] Which Google scopes should I request for this setup?
>
> Request only `openid`, `https://www.googleapis.com/auth/userinfo.email`, and `https://www.googleapis.com/auth/userinfo.profile`. Leave sensitive and restricted scopes unselected.

> [accordion] Where should I store the Google Client Secret?
>
> Save it only in Enter's Google Provider settings and a secure place authorized people can access. Never put it in Git, frontend code, project chat, documentation, or screenshots.

> [accordion] Does the Google test-user list restrict access to my app?
>
> No. With the three identity scopes on this page, accounts outside the test-user list can still sign in, so your app must enforce its own access rules.

## Keep going

> [!NOTE]
>
> **Next: [Publish your site](https://converge-enter-documentation.mintlify.site/en/articles/publish-site.md)**\
> Publish so visitors can use sign-in.

> [card] [Add and protect Cloud secrets](https://converge-enter-documentation.mintlify.site/en/articles/add-and-update-cloud-secrets.md)
>
> Keep other private keys safe.

> [card] [Create, manage, and delete an Enter Cloud instance](https://converge-enter-documentation.mintlify.site/en/articles/create-and-manage-an-enter-cloud-instance.md)
>
> Manage the Cloud instance behind your app.

> [card] [Make your app multilingual](https://converge-enter-documentation.mintlify.site/en/articles/manage-your-apps-translated-text.md)
>
> Add more languages to your app.


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