You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OIDCProxy: The proxy sends scope parameter in /token request while exchanging Authorization code for a token. #5058
authRelated to authentication (Bearer, JWT, OAuth, WorkOS) for client or server.bugSomething isn't working. Reports of errors, unexpected behavior, or broken functionality.
I am integrating OIDCProxy with my authorization server using the standard OIDC Authorizastion code flow with the openid scope.
The authorization step completes successfully:
MCP client is redirected to the authorization server's /authorize endpoint.
The user authenticates successfully.
The authorization server redirects to the registered redirect URI with an authorization code.
However, when OIDCProxy exchanges the authorization code at the /token endpoint, it includes a scope parameter in the token request.
For an OIDC Authorization code exchange, scope is requested at the authorization endpoint and it not a standard parameter of the token request. The token request should contain grant_type, code, redirect URI, code_verifier (in case of OKCE), and client authentication where required.
Could you please confirm whether OIDCProxy can omit scope from the Authorization Code token exchange request? If not, provide a way to omit scope.
Thanks
Example Code
Version Information
FastMCP version is 4.0.3. However, I can reproduce the issue with 3.x version as well.
authRelated to authentication (Bearer, JWT, OAuth, WorkOS) for client or server.bugSomething isn't working. Reports of errors, unexpected behavior, or broken functionality.
Activity