JwtBearer
JWT Token由以下三部分组成:
-
1
2
3
4{
"alg": "HS256",
"typ": "JWT"
}
-
1
2
3
4
5{
"sub": "1234567890",
"name": "John Doe",
"iat": 1516239022
} VERIFY SIGNATURE
1
2
3
4
5HMACSHA256(
base64UrlEncode(header) + "." +
base64UrlEncode(payload),
your-256-bit-secret
)
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 yinxianwei!
评论