You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add workaround for Claude.ai persistent client ID issue
Claude.ai generates a single client ID per OAuth provider domain and reuses it
forever. When client registrations are lost (server restart, storage cleared),
Claude.ai has no mechanism to detect this and re-register, leaving users
permanently locked out.
This workaround auto-registers Claude.ai clients when missing, checking for:
- Exact Claude.ai redirect URI: https://claude.ai/api/mcp/auth_callback
- Claude.ai MCP endpoints: https://claude.ai/api/mcp/*
Security note: While less secure than standard OAuth (redirect URI can be
spoofed), this is necessary until Claude.ai implements proper client
registration retry logic.
Added comprehensive tests to ensure:
- Only Claude.ai URLs trigger auto-registration
- Fake domains like myfakeclaude.ai are rejected
- Existing clients are not recreated
TODO: Remove once Claude.ai fixes their client registration behavior
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments