Decoding the JWT Token
For example: Token (Encoded)
eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ2ZXJzaW9uIjoidjEiLCJ
hcHBJZCI6ImFwcC00MjdGQ0E1Mzk4REQ0QjIxQUU4RkI1NTVDRjVGREE5RSIsInRlbmFud
ElkIjoxMTU1NywicGFydG5lclRlbmFudElkIjoidHJpZ3VlIiwidXNlcklkIjoidml2ZWt
uY0BjaXNjby5jb20iLCJpYXQiOjE1NTUwNTMxOTYsImV4cCI6MTU1NTA1MzMxNn0.QXce-Z
Qbp3_IYp1moEvUB2Xo6ic5udu-NPAMFgUFMq73JDaGmQTw5yW3wgNSzagXlVQ20yLL-f54Qf
9x0KCA6v2wbOiafyi4AqXofXBwbjF182713PUBxo89ghxtRyDuCoXvLHWVPfa2cmoFqD-FOF
vVzIw9mA4cJcSU2Vp57TA
JWT tokens are decoded using tools such as jwt.io. Listed below are the values of the decoded JWT token:
HEADER:ALGORITHM & TOKEN TYPE
{
"typ": "JWT",
"alg": "RS256"
}
PAYLOAD:DATA
{
"version": "v1",
"appId": "app-427FCA5398DD4B21AE8FB555CF5FDA9E",
"tenantId": 11557,
"partnerTenantId": "trigue",
"userId": "johndoe@email.com",
"iat": 1555053196,
"exp": 1555053316
}
{
"version": "v1",
"appId": "app-427FCA5398DD4B21AE8FB555CF5FDA9E",
"tenantId": 11557,
"partnerTenantId": "trigue",
"userId": "johndoe@email.com",
"iat": 1555053196,
"exp": 1555053316
}
VERIFY SIGNATURE
RSASHA256(
base64UrlEncode(header) + "." +
base64UrlEncode(payload),
)