Repository navigation
SSO sends PKCE; no agent is exposed over MCP unless named - #364
Merged
Merged
Conversation
- Google and GitHub sign-in use PKCE (S256): the login redirect carries a code challenge, Authlib keeps the verifier in the session with the state, and the callback sends it with the code. - MCP_EXPOSED_AGENTS defaulted to chess_mate_root, so any installation with an agent of that name served it at /agents/chess_mate_root/mcp. Unset now exposes none; .env.example no longer sets it. - Docs: sso-setup, auth-and-access (the session cookie is signed, not encrypted), mcp-servers, openai-api-and-mcp; reference regenerated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two findings from the #206 re-check.
SSO: PKCE (S256) for Google and GitHub
server/oauth_routes.pypassescode_challenge_method="S256"to both providers. Authlib 1.8 then sends a code challenge with the login redirect, keeps the verifier in the session next to thestate, and sends it with the code on the callback. A code taken from the redirect is of no use without the verifier./auth/login/googleand/auth/login/githubnow redirect withcode_challengeandcode_challenge_method=S256.MCP_EXPOSED_AGENTSexposes no agent when unsetIt defaulted to
chess_mate_root, so any installation with an agent of that name served it at/agents/chess_mate_root/mcpwithout anyone choosing to. Now an unset or empty value exposes none, and.env.exampleshows the variable commented out.Upgrade note for the 2.0 release notes: an installation that relied on the default has to set
MCP_EXPOSED_AGENTS=chess_mate_root.Tests
shared/test/test_oauth_pkce.pychecks:test_mcp_auth.py(TestExposedAgents) checks unset, empty and named values.test_client_contract.pyis unchanged and passes.Docs
sso-setup.md,auth-and-access.md,mcp-servers.mdandopenai-api-and-mcp.mdare updated.auth-and-access.mdalso called the session cookie encrypted; it is signed.docs/reference/configuration.mdis regenerated.driftreports no guides.