A website that generates JWT tokens online
https://dinochiesa.github.io/jwt/This
is a great online Jwt token generation/encoding/decoding website.
It supports symmetric and asymmetric algorithms, and can even generate RSA public/private keys.
About the playload Description of each field:
"payload": {
"iss": "some auth server", // 颁发token的 auth server
"sub": "naimish", //主题是什么,通常用来指定颁发给哪个user
"aud": "myrest client", //确定要给哪个resource server 验证 token
"iat": 1681480232, // 发布时间
"exp": 1682480832, //到期时间
"data": [ //自定义的数据
{
"aaa": "something ",
"bbb": "other",
}
],
}
The expiration time of the above website is in unix timestamp format, the setting is not friendly, you can use the following website settings. https://tooltt.com/jwt-encode/
The principle and implementation of token
JWT-based token verification, principle and process Creating And Validating JWT Tokens In C# .NET