summaryrefslogtreecommitdiff
path: root/plugins/security-guidance/tests/test_credential_routing.py
AgeCommit message (Collapse)Author
2026-11-07security-guidance: send a claude.ai token as a bearer, hold back a gateway'smhegazy/sg-credential-routingMohamed Hegazy
A claude.ai token that arrives as ANTHROPIC_API_KEY (from an apiKeyHelper) is refused by the API as a key; send it as a bearer. On hosts other than Claude Code, a bearer that is not a claude.ai token is not sent without a base URL. Other hosts' base URLs and cloud providers are left alone. Fixes #6955 Co-authored-by: mhegazy <mhegazy@anthropic.com>