Skip to content

Quiz: OAuth 2.0

Review first: OAuth 2.0

#

Question 1

A colleague builds an auth-code-flow integration for a public SPA without PKCE, arguing "it's only needed for mobile apps". Who's right?

#

Question 2

Which OAuth artifact should an API never accept as proof of identity for resource access?

#

Question 3

A client registered its redirect URI as https://*.client.com/callback "to support preview environments". What's the risk?

#

Question 4

What does the state parameter in the authorization request protect against?

#

Question 5

A smart TV app and a developer CLI both need to call an API on behalf of a signed-in user. Neither has a convenient browser or keyboard. Which grant fits?

#

Question 6

Your authorization server rotates refresh tokens on every use. It receives a refresh token that was already exchanged an hour ago. What should it do?