bharos opened a new pull request, #13:
URL: https://github.com/apache/gravitino-mcp-gateway/pull/13

   ### What changes were proposed in this pull request?
   
   - The docs and the Keycloak quick start list `offline_access` in 
`GATEWAY_API_SCOPES`, and the docs explain why.
   - The gateway's own sign-in asks for each scope once, even when 
`GATEWAY_API_SCOPES` repeats one of its default scopes.
   - The integration test for a client that registers itself asks for a refresh 
token the way Claude Code does, and accepts Keycloak's consent page.
   
   ### Why are the changes needed?
   
   MCP clients such as Claude Code register themselves with the scopes the 
gateway advertises, then also ask for `offline_access` to get a refresh token. 
Keycloak refuses a client that registered itself any scope it didn't register 
with, so sign-in failed with `invalid_scope`.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Deployments where MCP clients register themselves with Keycloak should add 
`offline_access` to `GATEWAY_API_SCOPES`.
   
   ### How was this patch tested?
   
   New unit test cases for the sign-in scopes, and the integration test now 
reproduces Claude Code's request against Keycloak. 1,092 unit tests and 7 
integration tests pass locally.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to