We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Web Token(JWT)是一个开放的标准(RFC 7519),该标准定义了一个在两者之间安全的使用 JSON 对象传递信息的方式。可以在以下场景中使用:
JWT的组成:
由两部分构成: token的type,以及加密的算法:
{ "alg": "HS256", "typ": "JWT" }
包含三种类型的claims: reserved,public,private.
{ "sub": "1234567890", "name": "John Doe", "admin": true }
需要提供header编码, payload编码, 密匙, 加密算法:
HMACSHA256( base64UrlEncode(header) + "." + base64UrlEncode(payload), secret)
一个JWT一般长这样: xxx.yyy.zzz.
xxx.yyy.zzz
下图显示了JWT是如何工作的:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
JWT介绍
JSON Web Token(JWT)是一个开放的标准(RFC 7519),该标准定义了一个在两者之间安全的使用 JSON 对象传递信息的方式。可以在以下场景中使用:
JWT的组成:
Header
由两部分构成: token的type,以及加密的算法:
Payload
包含三种类型的claims: reserved,public,private.
Signature
需要提供header编码, payload编码, 密匙, 加密算法:
一个JWT一般长这样:
xxx.yyy.zzz
.下图显示了JWT是如何工作的:
The text was updated successfully, but these errors were encountered: