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
oauth exchange code of token getting 400 BAD REQUEST as client id is required #2806
Do you have some more context about which OAuth Authorization Server you encountered this issue with?
I encountered an issue caused by this change when trying to authenticate with Slack's MCP server (see example in #4782), and I believe the RFC might have been misinterpreted.
RFC 6749 says (emphasis mine):
client_id
REQUIRED, if the client is not authenticating with the
authorization server as described in Section 3.2.1.
I believe the correct interpretation of this is that client_id is only required if the client is not authenticating with the server as described in section 3.2.1.
The RFC doesn't clearly state that passing client_id is disallowed when other means of authentication are provided ‒ unless you count it as an authentication method ‒ which you can (it's at least 50% of the client_secret_post authentication method by parameters and placement), then this passage explicitly disallows passing it when using client_secret_basic or other methods:
The client MUST NOT use more than one authentication method in each
request.
— RFC 6749 Section 2.3
This interpretation seems to be shared with authlib, which:
Activity
fix(oauth): add client id to token exchange
joar commentedon Mar 10, 2026
Do you have some more context about which OAuth Authorization Server you encountered this issue with?
I encountered an issue caused by this change when trying to authenticate with Slack's MCP server (see example in #4782), and I believe the RFC might have been misinterpreted.
RFC 6749 says (emphasis mine):
I believe the correct interpretation of this is that
client_idis only required if the client is not authenticating with the server as described in section 3.2.1.The RFC doesn't clearly state that passing
client_idis disallowed when other means of authentication are provided ‒ unless you count it as an authentication method ‒ which you can (it's at least 50% of theclient_secret_postauthentication method by parameters and placement), then this passage explicitly disallows passing it when usingclient_secret_basicor other methods:This interpretation seems to be shared with authlib, which:
client_idin body when token endpoint auth method is"none", andclient_idin body when token endpoint auth method is"client_secret_basic"I think it's reasonable to propose that if authlib isn't compliant with RFC 6749, then the fix belongs in authlib and not ADK.
fix(oauth): add client id to token exchange