Quiz: Scopes & Claims¶
Review first: Scopes & Claims
Question 1
Alice is an org admin who may read and edit every calendar. She grants a third-party scheduling app calendar:read. What may the app do with her token?
Question 2
A designer proposes scopes like orders:42:read and orders:43:read so tokens can grant access to specific orders. What's wrong with this?
Question 3
Which of these should be looked up server-side rather than carried in the access token? Select ALL that apply:
Question 4
A request arrives with a valid, unexpired token for your API, but it lacks the orders:write scope required by POST /orders. What's the correct response?
Question 5
A service reads the roles claim with jwt.decode(token, options={"verify_signature": False}) "for speed, since the gateway already authenticated the request". What's the risk?