JWT和SAML之间的区别? [英] Difference between JWT and SAML?

查看:433
本文介绍了JWT和SAML之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JWT(Json Web令牌)和SAML之间的主要区别是什么?请为我提供有关Spring Security的任何示例.预先感谢.

What are the main difference between JWT (Json Web Token) and SAML? Please suggest me any example of these with spring security. Thanks in advance.

推荐答案

SAML JWT 是不依赖于安全令牌的格式任何编程语言. SAML是较旧的格式,基于XML.它通常用在SAML-P,WS-Trust和WS-Federation等协议中(尽管并非严格要求).

Both SAML and JWT are security token formats that are not dependent on any programming language. SAML is the older format and is based on XML. It's used commonly in protocols like SAML-P, WS-Trust and WS-Federation (although not strictly required).

JWT(JSON Web令牌)令牌基于JSON,并在新的身份验证和授权协议(如OpenID Connect和OAuth 2.0)中使用.

JWT (JSON Web Token) tokens are based on JSON and used in new authentication and authorization protocols like OpenID Connect and OAuth 2.0.

这篇关于JWT和SAML之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆