-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuth2: Creating an access token with "too many" scopes fails #1767
Comments
This is related to #1759, and came up when actually trying to work with that many different scopes (integration tests). This is not a super usual kind of situation, but there are definitely users which would have all product licenses, and thus would be assigned all scopes. |
The limit seems to be 10k; I see that the |
I have a similar issue here. |
Thanks for the report @DonMartin76. With 4c907bc request body handling is now more easily configurable, allowing users to avoid buffering request bodies to disk. The solution here will be to increase the Thanks for the report! |
Summary
If you try to create an access token for an OAuth2 API using the implicit grant, and you have assigned too many scopes to the access token, Kong fails at the
/oauth2/authorize
end point with a 500 return code. I have found that around 1500 scopes (formed like this:scope_1
toscope_1500
) are sufficient to trigger this behaviour.Steps To Reproduce
scope_1
toscope_5000
); this works.Additional Details & Logs
<KONG_PREFIX>/logs/error.log
):kong
docker image on Mac OS X (but shouldn't matter)The text was updated successfully, but these errors were encountered: