我想使用 Kong 来保护一些服务。但我已经使用 idm 进行用户管理。
用户从 idm 获取令牌,并在请求 kong 网关时将其放入 header 中。为此,我将编写一个插件来执行此操作。然后插件会请求 idm。如果允许用户发出此请求以及用户在 idm 中拥有的用户 ID,则作为您从 idm 获得的答案。所以用户只在idm中注册,而不是在Kong中作为消费者。如果我现在想使用速率限制,插件描述说If the underlying Service/Route (or deprecated API entity) has no authentication layer, the client IP address will be used, otherwise the Consumer will be used if an authentication plugin has been configured.
现在是否可以使用 idm 中的用户 ID 来限制速率限制?
我已经发现:
但我找不到我的问题的答案。