mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 04:57:19 +01:00
claude.ai custom connectors register with token_endpoint_auth_method "client_secret_post"; /oauth/register refused anything but "none", so adding the Loki connector with automatic registration failed. Per RFC 7591 §3.2.1 the server may replace requested metadata: accept none, client_secret_post and client_secret_basic, always register a public client, answer token_endpoint_auth_method "none", issue no secret. PKCE S256 stays required at /oauth/authorize. Other methods (private_key_jwt, ...) are still refused. /oauth/token now reads client credentials from a Basic header as well as the form (moved to services/auth/tokenClientAuth.ts), and ignores a secret a public client sends rather than refusing it. Confidential clients still need theirs. Metadata advertises client_secret_basic. Claude-Session: https://claude.ai/code/session_019MDtmuhWfFPT9wKangtTyJ Co-authored-by: Claude <noreply@anthropic.com>