teknium1
19c8ad3d3d
fix: add Claude Code user-agent to OAuth token exchange/refresh requests
Anthropic's token endpoint is behind Cloudflare which blocks Python's
default urllib user-agent (Python-urllib/3.x). Without a proper
user-agent, the token exchange returns 403 (Cloudflare error 1010).
Adds 'claude-cli/2.1.2 (external, cli)' user-agent to all three
OAuth HTTP requests:
- Initial token exchange (authorization_code grant)
- Hermes token refresh (refresh_token grant)
- Claude Code credential refresh (refresh_token grant)
Verified: full OAuth PKCE flow now works end-to-end.
2026-03-16 23:26:43 -07:00
..
2026-02-21 22:31:43 -08:00
2026-03-16 23:26:43 -07:00
2026-03-14 23:44:47 -07:00
2026-03-14 02:33:31 -07:00
2026-03-15 20:21:21 -07:00
2026-03-16 04:42:48 -07:00
2026-03-12 17:04:31 -07:00
2026-03-16 06:52:32 -07:00
2026-03-13 18:08:46 -07:00
2026-03-13 03:14:04 -07:00
2026-03-14 21:28:51 -07:00
2026-03-16 12:36:29 -07:00
2026-02-21 22:31:43 -08:00
2026-03-16 04:42:48 -07:00