JSON Web Token (JWT) is an object used to authenticate web applications and authorization and information exchanged.
A JWT consists of a header (x), payload(y), and a signature:
xxxx.yyyy.zzzz
Header
The header consists of two parts: the type of token and the signing algorithm (ensures a message is authentic and not altered).
{
"alg":"RSA",
"typ":"JWT"
}
Payload
The payload contains the claims which are statements about an entity.
This is the combined and signed encoded header, encoded payload plus a secret, and an algorithm specified in the header.
This is what it might look like using the RSA algorithm:
Description
JSON Web Token (JWT) is an object used to authenticate web applications and authorization and information exchanged. A JWT consists of a header (x), payload(y), and a signature:
Header
The header consists of two parts: the type of token and the signing algorithm (ensures a message is authentic and not altered).
Payload
The payload contains the claims which are statements about an entity.
Signature
This is the combined and signed encoded header, encoded payload plus a secret, and an algorithm specified in the header. This is what it might look like using the RSA algorithm:
Each time a user logs in, a JWT is created and returned. Two types of tokens will be of use here:
Acceptance Criteria