Question: Suppose an SSO server needs to construct a JWT to establish a session for a user. The server will sign the JWT with an SHA

Suppose an SSO server needs to construct a JWT to establish a session for a user. The server will sign the JWT with an SHA256 hash using the HMAC secret key FAKEKEY123.
The server needs the JWT to contain the following JSON object.
{
"first_name": "Nathan",
"last_name": "Smith",
"SSN4": "1234",
"fav_color": "blue",
"session_length" : "20m"
}
Give the entire Base64 encoded JWT (seperated by dots).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!