← Quiz: Authentication, Sessions and JWT: all 10 questions
Quiz: Authentication, Sessions and JWT · Question 9 of 10
GET /api/results/1043 returns a result that belongs to a different student. What check is missing?
GET /api/results/1043 returns a result that belongs to a different student. What check is missing?
- A.Password hashing
- B.HTTPS
- C.An ownership check that the resource belongs to the logged-in user
- D.A larger JWT
Answer & explanation
Correct answer: An ownership check that the resource belongs to the logged-in user
Being logged in is not enough; each resource must be checked against the current user.
Can you get the rest right without peeking?
Take the timed Quiz: Authentication, Sessions and JWT quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →