[BUG] Claude in Chrome extension OAuth fails - "Authorization failed" with chrome-extension:// redirect_uri rejected by server
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report
- [x] I am using the latest version of Claude Code
What's Wrong?
Claude in Chrome extension OAuth authorization fails with "Authorization failed - This isn't working right now" immediately after clicking Authorize.
Steps to Reproduce
- Install Claude in Chrome extension (fcoeoabgfenejglbffodgkkbkcdhcgfn)
- Open Claude Code and enable the Claude in Chrome connector
- Click the extension icon to authorize
- Browser opens claude.ai/oauth/authorize
- Click Authorize → immediately shows "Authorization failed"
Evidence
The OAuth URL generated is correct and contains all required parameters:
https://claude.ai/oauth/authorize?client_id=dae2cad8-15c5-43d2-9046-fcaecc135fa4&response_type=code&scope=user%3Aprofile+user%3Ainference+user%3Achat&redirect_uri=chrome-extension%3A%2F%2Ffcoeoabgfenejglbffodgkkbkcdhcgfn%2Foauth_callback.html&state=...&code_challenge=...&code_challenge_method=S256
The server rejects the redirect_uri:chrome-extension://fcoeoabgfenejglbffodgkkbkcdhcgfn/oauth_callback.html
Expected Behavior
OAuth completes successfully and Claude in Chrome connects to Claude Code.
Environment
- Claude Code Version: v2.1.179
- Claude in Chrome Extension: latest
- Browser: Chrome (latest)
- OS: Windows
- Plan: Claude Pro ($20/month)
- Related issues: #17786, #17790, #38664
Additional Notes
- Claude Code OAuth login works fine using incognito window workaround
- The redirect_uri format chrome-extension:// is not whitelisted on claude.ai server side
- oauth_callback.html appears to be missing from extension package
What Should Happen?
Clicking "Authorize" should complete the OAuth flow, redirect to oauth_callback.html, store the access token, and allow Claude in Chrome extension to connect successfully to Claude Code.
Error Messages/Logs
Steps to Reproduce
- Install Claude in Chrome extension from Chrome Web Store
- Install Claude Code (v2.1.179) and log in successfully
- In Claude Code, run /connectors and enable Claude in Chrome
- Click the extension icon in Chrome toolbar to authorize
- Browser opens claude.ai/oauth/authorize with valid parameters including client_id
- Page immediately shows "Authorization failed - This isn't working right now"
(Never reaches the Authorize button stage)
Note: Opening the same OAuth URL in an incognito window shows "Authorization failed" as well.
The redirect_uri chrome-extension://fcoeoabgfenejglbffodgkkbkcdhcgfn/oauth_callback.html appears to not be whitelisted on the server side.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
v2.1.179
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗