JWT和KONG具有自定义身份验证

编程入门 行业动态 更新时间:2024-10-24 22:23:25
本文介绍了JWT和KONG具有自定义身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在KONG上阅读了本教程 getkong/plugins/jwt/

I went through this tutorial on KONG getkong/plugins/jwt/

我对JWT和授权概念有所了解.我已经用Spring Boot原型化了JWT,可以在其中放置自己的键值,例如{{authorizations:"role_admin,role_user"}.

I have an understanding of JWT and authorization concepts. I have prototyped JWT with Spring Boot where I could put my own key value like this {"authorizations":"role_admin, role_user"}.

在Spring Boot中很容易做到这一点,但是我找不到有关如何使用KONG进行此操作的信息.有人有任何信息吗?

It is easy to do that in Spring Boot but I am not able to find information on how to do this with KONG. Anyone has any info about it?

推荐答案

Kong社区版只能处理身份验证过程((允许或拒绝与客户联系).

Kong community edition can handle only the authentication process, (give or deny access to a customer).

授权过程(给定客户可以在您的应用程序中执行的操作)由您的应用程序或 getkong/plugins/ee-oauth2-introspection/仅限企业版的oauth2自省插件

Authorization process (what a given customer can do in your application) is handled by your application or by getkong/plugins/ee-oauth2-introspection/ oauth2 introspection plugin which is enterprise edition only

如果用户通过身份验证或由kong代理的原始令牌头,则可以基于X-Consumer-Username请求头编写自己的授权服务器

you can write your own authorization server based on X-Consumer-Username request header if user passed authentication or original token header proxied by kong

希望有帮助

更多推荐

JWT和KONG具有自定义身份验证

本文发布于:2023-11-04 00:50:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1556506.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   身份验证   JWT   KONG

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!