Skip to main content
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. Before you start, make sure you can open the Google Provider settings in Enter and create or manage a project in Google Cloud.
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

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.

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.
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

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.
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

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.
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.
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.
  • 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

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.
Click Update, then click Save on the main page.
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

Request only openid, https://www.googleapis.com/auth/userinfo.email, and https://www.googleapis.com/auth/userinfo.profile. Leave sensitive and restricted scopes unselected.
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.
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

Next: Publish your site
Publish so visitors can use sign-in.

Add and protect Cloud secrets

Keep other private keys safe.

Create, manage, and delete an Enter Cloud instance

Manage the Cloud instance behind your app.

Make your app multilingual

Add more languages to your app.