Lesson 6 of 6 15 min +200 XP
🧠 OAuth Assessment
Answer all questions to complete the quiz and earn 200 XP.
1
A mobile banking app needs to authenticate users. Which OAuth flow should it use?
2
Your SPA receives tokens but you notice the access_token appears in browser history. What's wrong?
3
A backend service needs to call another internal API. No user is involved. Which flow?
4
What claim in an ID token uniquely identifies the user across all sessions?
5
An attacker intercepts an authorization code. With PKCE implemented, what happens when they try to exchange it?
6
Your app's OAuth callback doesn't validate the state parameter. What attack becomes possible?
7
What's the main difference between an access token and an ID token?
8
A JWT access token is stolen. Why is short expiration (1 hour) better than long (30 days)?
9
Where should a web application store refresh tokens?
10
Your app validates an ID token. Which check should you NOT skip?
11
Refresh token rotation is implemented. What happens if someone tries to use an old refresh token?
12
Google's OIDC discovery document is at /.well-known/openid-configuration. What does it provide?
13
A developer stores the client_secret in their React app's JavaScript. What's the risk?
14
Which scope is REQUIRED for OpenID Connect to return an ID token?
15
Your redirect_uri is https://app.com/callback. An attacker tries https://app.com/callback/../evil. What should happen?
correct