Not able to rate limit Kong's Outh2 plugin default endpoints #10041
Replies: 5 comments
-
I think Kong EE has a new @jschmid1, do you agree? Unfortunately we don't have it in the Kong CE, but you can download the EE for free (AFAIK). |
Beta Was this translation helpful? Give feedback.
-
+1 plugin ordering could help in this situation |
Beta Was this translation helpful? Give feedback.
-
Hi @bungle @jschmid1, Is it only available post 3.x version or do you have any plan to add it in any latest 2.8.x versions as well? Also I couldnt find this plugin in the kong pluginhub page, |
Beta Was this translation helpful? Give feedback.
-
Plugin ordering is only available on 3.0 and there are no plans to backport it to 2.8 right now. |
Beta Was this translation helpful? Give feedback.
-
@adarsh279 We've used the approach listed here to rate limit the oauth token endpoint to prevent excess token generation |
Beta Was this translation helpful? Give feedback.
-
Is there an existing issue for this?
Kong version (
$ kong version
)2.8.1.0
Current Behavior
I have configured one of my microservices with Kong Oauth2 plugin and exposed a route for accessing the API.
I am using client_credentials flow to authenticate the API.
Default endpoint for token generation is /oauth2/token.
Token generation works fine and the exposed API works with the access token.
Now, I have a new requirement to apply rate limit on both the token (default) endpoint and the service endpoint.
I am able to configure service endpoint with rate limit however the default oauth token endpoint rate limit is not working if configured.
Is there a limitation with Kong on this ? Please help with your suggestions
Expected Behavior
No response
Steps To Reproduce
No response
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions