How to implement external auth in KONG?

微笑、不失礼 提交于 2021-02-10 14:14:46

问题


I'm using KONG API Gateway, and I want to implement JWT authentication as separate microservice (not using KONG plugin), now I can easily register this service with KONG, and so users can register and login. Assume an authenticated user had sent a request with a token attached in the header, how to make KONG forwards the request to the authentication service first, then if it is valid the request is forwarded to the requested service?


回答1:


Yes you can (But I have not used them) there is as far as I know two options:

  1. https://docs.konghq.com/hub/kong-inc/openid-connect/ Enterprise
  2. https://github.com/aunkenlabs/kong-external-auth Free


来源:https://stackoverflow.com/questions/57268652/how-to-implement-external-auth-in-kong

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!