claude-code - 💡(How to fix) Fix [BUG] Gmail Connector – "This app is blocked" when creating labels (OAuth scope issue) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#55113Fetched 2026-05-01 05:45:56
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×2commented ×1unlabeled ×1

Error Message

Retried Gmail connector directly after tools were reloaded → error: Authentication failed. Error message from Google OAuth: "Diese App ist blockiert" (This app is blocked) – the OAuth warning page shows no way to proceed, no "Advanced" or "Continue anyway" option.

Error Messages/Logs

Error message from Google OAuth: "Diese App ist blockiert" (This app is blocked) – the OAuth warning page shows no way to proceed, no "Advanced" or "Continue anyway" option. Retried Gmail connector directly after tools were reloaded → error: Authentication failed.

Root Cause

Error message from Google OAuth: "Diese App ist blockiert" (This app is blocked) – the OAuth warning page shows no way to proceed, no "Advanced" or "Continue anyway" option. Root cause (based on existing GitHub issues #46206 and #50754): The Gmail connector does not request the gmail.modify or gmail.labels OAuth scope during authorization. Without this scope, Google hard-blocks write operations like label creation. This appears to be a server-side issue in the connector implementation. Expected behavior: After connecting the Gmail connector and granting permissions, create_label should work. Actual behavior: Google blocks the OAuth flow entirely with no workaround available to the user. Related issues:

Fix Action

Fix / Workaround

Gmail connector (MCP) – first attempt: Called create_label → got Google OAuth warning page ("Diese App ist blockiert" / "This app is blocked"). No "Advanced" link visible to bypass the block. Reconnected the Gmail connector in Claude.ai Settings → Connectors, then retried create_label → same authentication failure. Tried Claude in Chrome extension as an alternative workaround → blocked by organization policy, not available. Retried Gmail connector directly after tools were reloaded → error: Authentication failed.

Error message from Google OAuth: "Diese App ist blockiert" (This app is blocked) – the OAuth warning page shows no way to proceed, no "Advanced" or "Continue anyway" option. Root cause (based on existing GitHub issues #46206 and #50754): The Gmail connector does not request the gmail.modify or gmail.labels OAuth scope during authorization. Without this scope, Google hard-blocks write operations like label creation. This appears to be a server-side issue in the connector implementation. Expected behavior: After connecting the Gmail connector and granting permissions, create_label should work. Actual behavior: Google blocks the OAuth flow entirely with no workaround available to the user. Related issues:

Expected behavior: After connecting the Gmail connector and granting permissions, create_label should work. Actual behavior: Google blocks the OAuth flow entirely with no workaround available to the user.

Code Example

Error message from Google OAuth: "Diese App ist blockiert" (This app is blocked) – the OAuth warning page shows no way to proceed, no "Advanced" or "Continue anyway" option.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Bug Report: Gmail Connector – "This app is blocked" when creating labels (OAuth scope issue) Environment: Claude.ai web interface, private Gmail account (not Google Workspace) What I tried to do: Create a Gmail label via the Claude Gmail connector. Steps taken & results:

Gmail connector (MCP) – first attempt: Called create_label → got Google OAuth warning page ("Diese App ist blockiert" / "This app is blocked"). No "Advanced" link visible to bypass the block. Reconnected the Gmail connector in Claude.ai Settings → Connectors, then retried create_label → same authentication failure. Tried Claude in Chrome extension as an alternative workaround → blocked by organization policy, not available. Retried Gmail connector directly after tools were reloaded → error: Authentication failed.

Error message from Google OAuth: "Diese App ist blockiert" (This app is blocked) – the OAuth warning page shows no way to proceed, no "Advanced" or "Continue anyway" option. Root cause (based on existing GitHub issues #46206 and #50754): The Gmail connector does not request the gmail.modify or gmail.labels OAuth scope during authorization. Without this scope, Google hard-blocks write operations like label creation. This appears to be a server-side issue in the connector implementation. Expected behavior: After connecting the Gmail connector and granting permissions, create_label should work. Actual behavior: Google blocks the OAuth flow entirely with no workaround available to the user. Related issues:

https://github.com/anthropics/claude-code/issues/46206 https://github.com/anthropics/claude-code/issues/50754

What Should Happen?

Expected behavior: After connecting the Gmail connector and granting permissions, create_label should work. Actual behavior: Google blocks the OAuth flow entirely with no workaround available to the user.

Error Messages/Logs

Error message from Google OAuth: "Diese App ist blockiert" (This app is blocked) – the OAuth warning page shows no way to proceed, no "Advanced" or "Continue anyway" option.

Steps to Reproduce

Gmail connector (MCP) – first attempt: Called create_label → got Google OAuth warning page ("Diese App ist blockiert" / "This app is blocked"). No "Advanced" link visible to bypass the block. Reconnected the Gmail connector in Claude.ai Settings → Connectors, then retried create_label → same authentication failure. Tried Claude in Chrome extension as an alternative workaround → blocked by organization policy, not available. Retried Gmail connector directly after tools were reloaded → error: Authentication failed.

Claude Model

Sonnet (default)

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

latest

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The Gmail connector needs to request the gmail.modify or gmail.labels OAuth scope during authorization to fix the "This app is blocked" error when creating labels.

Guidance

  • Review the OAuth authorization flow in the Gmail connector to ensure it requests the necessary gmail.modify or gmail.labels scope.
  • Verify that the connector is correctly configured to handle the OAuth flow and that the scope is being requested.
  • Check the related issues (#46206 and #50754) for potential solutions or workarounds.
  • Consider updating the connector to request the required scope or implementing a workaround to allow users to bypass the block.

Example

No code snippet is provided as the issue is related to the OAuth scope configuration, which is not explicitly shown in the issue body.

Notes

The issue appears to be a server-side problem with the connector implementation, and the solution will likely involve updating the connector to request the correct OAuth scope.

Recommendation

Apply workaround: Update the Gmail connector to request the gmail.modify or gmail.labels OAuth scope during authorization to fix the issue. This is the most likely solution based on the error message and related issues.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Gmail Connector – "This app is blocked" when creating labels (OAuth scope issue) [1 comments, 2 participants]