Question: Suppose a web application needs to authenticate a user to provide access to a restricted area. The server receives a JWT token below. eyJhbGciOiJIUzI 1

Suppose a web application needs to authenticate a user to provide access to a restricted area. The server receives a JWT token below.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmaXJzdE5hbWUiOiJOYXRoYW4iLCJsYXN0TmFtZSI6IlJ1c3NlbGwiLCJhY2Nlc3NUb2tlblN0cmluZyI6Img3amtlcjk4OSJ9.4QsRyHDlxtaGPNf4K_UQOTcGL_8j1PLTgl-e8EeugWs
Both endpoints know a common base64 encoded secret shown below.
awRTE576849
Use this information to answer the follow questions?
1. What is the firstName of the user being authenticated?
2. What is the lastName of the user being authenticated?
3. What is the accessTokenString? Hint: Your answer should begin 9 characters long and begins with an "h".
4. Would the sever be able to confirm the signature of the JWT token? Please answer with yes or no.

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 Databases Questions!