🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.A query parameter ?token=...
  2. B.A cookie named JSESSIONID
  3. C.The JSON body of every request
  4. 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 →