← Quiz: Security and JWT: all 10 questions
Quiz: Security and JWT · Question 7 of 10
Which part of the request carries the JWT to the Course API?
Which part of the request carries the JWT to the Course API?
- A.A query parameter ?token=...
- B.A cookie named JSESSIONID
- C.The JSON body of every request
- D.The header Authorization: Bearer <token>
Answer & explanation
Correct answer: The header Authorization: Bearer <token>
oauth2ResourceServer().jwt() reads and verifies the Bearer token from this header.
Can you get the rest right without peeking?
Take the timed Quiz: Security and JWT quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →