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
In the case the client provides invalid credentials (id or secret):
The plugin returns the "error" filed with value "invalid_request" but it should be "invalid_client".
The plugin return HTTP 400 status code even if the client authenticated with an Authorization header.
The plugin returns the "error_description" filed which specifies whether the id or the secret is wrong. This should be avoided as it gives information to an attacker.
RFC6749 5.2 - invalid_client
If the client attempted to authenticate via the "Authorization" request header field, the authorization server MUST respond with an HTTP 401 (Unauthorized) status code and include the "WWW-Authenticate" response header field matching the authentication scheme used by the client.
In the case the provided grant type is not configured for a specific OAuth2 application the plugin returns HTTP 400 with "error" : "invalid_request". It should be "error" : "unsupported_grant_type"
Thanks for having solved so quickly. I know it's a big request but I try. This fix broke the public API, any chance to see a fixed release (0.7.1) in few(1-3) days? We would deploy in production Kong but without this fix online, I can't. @thefosk Thank you again.
@codebien I am planning to release 0.7.1 maybe next week, but definitely not this week. If it's an option for you, you could manually apply the patch submitted by #1025 to your installed Kong. Basically the only file that matters is kong/plugins/oauth2/access.lua (the other one is the test). Just replace your local file with the new one.
To learn where Kong put its files on your system, you could run
Kong: 0.6.1
In the case the client provides invalid credentials (id or secret):
In the case the provided grant type is not configured for a specific OAuth2 application the plugin returns HTTP 400 with "error" : "invalid_request". It should be "error" : "unsupported_grant_type"
Why is the redirect_uri mandatory? It is not in Oauth2 for clients using client credentials grant type.
The text was updated successfully, but these errors were encountered: