Skip to main content

Overview

If you see the error message “This app is blocked” when attempting to connect a Google Workspace service (Drive, Docs, Sheets, Calendar, or Gmail) through Connectors, it is typically caused by a misconfiguration of Google’s OAuth settings within your organization’s Google Workspace. This guide walks you through resolving the issue so you can connect Google services to your Replit apps.
Google error dialog showing 'This app is blocked' message preventing OAuth access
These steps apply only to Google Workspace accounts (organization-managed accounts). If you are using a personal Google account linked to a @gmail.com address and the Replit connector is blocked, you cannot change the OAuth policy yourself — contact your Google Workspace admin or use a different account.

Troubleshooting steps

Step 1: Try Incognito mode

Browser extensions or cached data can interfere with the OAuth flow. Using Incognito mode bypasses these issues.
1

Open Incognito

Open a new Incognito (Chrome) or Private (Firefox/Safari) window in your browser.
2

Sign in to Replit

Log in to your Replit account at replit.com.
3

Retry the connection

Open the Workspace for your app, navigate to Connectors in the sidebar, and try connecting the Google service again.
If the error persists, continue to Step 2.

Step 2: Verify OAuth settings in Google Workspace

You need access to your organization’s Google Admin console for this step. Contact your IT team if you do not have admin access.
1

Open the Google Admin console

Log in to your organization’s Google Admin console.
2

Confirm the user exists

Navigate to the Users section and confirm that the account attempting the Replit connection is listed.
Google Admin console Users section showing user accounts
3

Navigate to API Controls

Go to Security > Access and data control > API controls.
Google Admin console showing Security > API Controls navigation path
4

Open third-party app access

Select Manage third-party app access.
Google Admin console API controls page with Manage third-party app access button highlighted
5

Check OAuth access

Verify that OAuth access is enabled for users in the workspace. If it is restricted, grant the required access so Replit can complete the OAuth flow.
If the connection still fails, continue to Step 3.

Step 3: Add Replit as a trusted OAuth client

If your organization restricts third-party app access by default, you need to explicitly trust Replit.
1

Open the Google Admin console

Log in to your organization’s Google Admin console.
2

Navigate to API Controls

Go to Security > Access and data control > API controls.
3

Open third-party app access

Under App access control, select Manage third-party app access.
4

Add a new app

Select the Add app button, then choose OAuth App Name or Client ID from the dropdown.
5

Search for Replit

Enter the Replit Client ID:
1012035106355-2dhot2e6o0malvog2ofss7akj2nsp8nq.apps.googleusercontent.com
Select Search. When the Replit app appears in the results, select it.
6

Set the access level

Set the access level to Trusted.
7

Save

Select Save.
Changes to Google Workspace policies can take a few minutes to propagate. Wait 5-10 minutes after saving, then try connecting your Google service in Replit again.

Still blocked?

If you have completed all three steps and the error persists:
  • Double-check the organizational unit (OU): Google Workspace policies can be scoped to specific OUs. Make sure the OAuth and trusted-app settings apply to the OU that contains the user trying to connect.
  • Review Google Workspace alerts: In the Admin console, check Reporting > Audit and investigation > OAuth log events for any denied requests related to Replit.
  • Contact Replit support: If the issue is not on the Google Workspace side, reach out to Replit support for help.