desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Bug report: OAuth2 Password Credentials grant sends both header & body

Open distinctgrey opened this issue 6 years ago • 1 comments

When choosing the "Password Credentials" grant for OAuth2 token fetching, the option "Client Authentication" is shown. The option "Send client credentials in body" adds ClientID and ClientSecret to the request body, as expected.

The option "Send as Basic Auth header" adds a base64 hash of ClientID and ClientSecret to an Authorization header (also as expected). But: they are also still added to the request body. This leads IDP software (in this case Okta) to complain that ClientID is sent multiple times, with errors:

Cannot supply multiple client credentials. Use one of the following: credentials in the Authorization header, credentials in the post body, or a client_assertion in the post body.

See also these screenshots:

screenshot 2019-02-15 at 14 39 54

screenshot 2019-02-15 at 14 39 59

distinctgrey avatar Feb 15 '19 13:02 distinctgrey

Any updates on this? This is pretty much a blocker for our API testing with Stoplight...

distinctgrey avatar Jun 20 '19 14:06 distinctgrey