Repository navigation
Fix MCP OAuth authorization for ChatGPT - #711
Conversation
Use the client metadata document's supported authentication methods when it provides them. ChatGPT advertises none alongside its legacy private_key_jwt preference, so Hollo can use its public-client PKCE flow. Preserve the existing fallback for documents without a list. Cover ChatGPT's metadata in a regression test and document the supported method in the unreleased MCP changelog. fedify-dev#708 Assisted-by: Codex:gpt-6.2-sol Assisted-by: Claude Code:claude-fable-5-2
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
When ChatGPT connects to the MCP endpoint added in #708, Hollo returns
invalid_requestbefore showing the consent screen. Hollo rejects ChatGPT's Client ID Metadata Document because the legacytoken_endpoint_auth_methodfield declaresprivate_key_jwt. The same document also advertisesnonein its supported methods list.Hollo now checks
token_endpoint_auth_methods_supportedwhen the document provides it. A client that listsnonecan use Hollo's public-client authorization code flow with PKCE. When the list is absent, Hollo falls back to the legacy field and defaults tononeif both fields are absent.The updated parser accepts ChatGPT's live metadata. Completing the OAuth flow in ChatGPT web still needs verification on a Hollo instance running the patch.