keycloak - How to protect services using Kong API Gateway to only authenticated requests? - Stack Overflow

I'm trying to use Kong as API Gateway with a custom authentication service to authenticate all use

I'm trying to use Kong as API Gateway with a custom authentication service to authenticate all users for all services in the upstream.

At the beginning I'll use my custom authentication service, but the solution can be using Keycloak or AWS Cogito.

1 - Can Kong redirect all unauthenticated requests to a specific route (the route for authentication service?)
2 - If Kong can't redirect it, how to authenticate the user before requesting protected routes?
3 - I'll need to use a IAM client library for all my services? For example:
4 - Can Kong check if the requests has a valid JWT token?
5 - The redirect will be called by the IAM library in the service and not in Kong? Is that?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744646783a4585657.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信