Rest Authentication #7386
Replies: 8 comments
-
@kinncj did you have any problem with the Key Authentication plugin? |
Beta Was this translation helpful? Give feedback.
-
No... My plugin suggestion is a Rest Authentication, where you can define an URL that will handle authentications (or even a previously configured API) and return the proper status code, so kong knows when the user got authenticated or not. This way, for every API request that has the plugin enable, 2 requests would be made... one for authentication, the other to the actual configured API. It would match (a bit) with this ticket #155 In my case, I want my "/authenticate" endpoint to be called before every configured API call, instead of using Kong's authentication plugins (we handle our own authentication). |
Beta Was this translation helpful? Give feedback.
-
@kinncj I see - I have a few questions:
|
Beta Was this translation helpful? Give feedback.
-
@thefosk , can be every-time if it's easier. Let's not call it Let's call it My api will be named Would be nice if I add the if success, it forwards the request to makes sense? |
Beta Was this translation helpful? Give feedback.
-
Good ideia @kinncj 👍 You have any kind of ideia about caching the I say this because Kong will make a lot of requests for |
Beta Was this translation helpful? Give feedback.
-
I believe it should be configurable. |
Beta Was this translation helpful? Give feedback.
-
I really like that, this would allow fine grained authorisation to resources |
Beta Was this translation helpful? Give feedback.
-
This is perfect! We have our own lite-weight API gateway that does this. In fact, there should be a feature that allows calling any 3rd party endpoint or multiple endpoints. The plugin should take action based on HTTP codes. |
Beta Was this translation helpful? Give feedback.
-
Summary
Configure a payload where an auth key is sent (as the key authentication plugin) and a 403 is returned in case of failure.
Beta Was this translation helpful? Give feedback.
All reactions