OAuth 2.0 and OpenID Connect
1.[3p] Match each OAuth role to what it does.
Match each OAuth role to what it does.
Resource owner
Client
Authorization server
Resource server
your application, treated by the protocol as untrusted
the user, the only party who can grant access to their data
holds the data and accepts access tokens
the only party that ever sees the user's password
Show the answer
Resource owner: the user, the only party who can grant access to their data Client: your application, treated by the protocol as untrusted Authorization server: the only party that ever sees the user's password Resource server: holds the data and accepts access tokens
2.[3p] Put the authorization code flow in order.
Put the authorization code flow in order.
The client posts the code and verifier to the token endpoint, server to server
The authorization server redirects back with a code and the same state
The user authenticates and consents at the authorization server
The client redirects the browser with a code challenge and state
Show the answer
c, b, d, a
3.[3p] A PKCE code verifier is 32 random bytes encoded as base64url. How many characters long is it?
A PKCE code verifier is 32 random bytes encoded as base64url. How many characters long is it?
4.[3p] code_challenge_method=plain puts the verifier itself in the authorization URL. What does that cost?
code_challenge_method=plain puts the verifier itself in the authorization URL. What does that cost?
5.[3p] What attack does state prevent?
What attack does state prevent?
6.[2p] An authorization server may safely match a registered redirect URI by prefix, so long as the host is exact.
An authorization server may safely match a registered redirect URI by prefix, so long as the host is exact.
7.[3p] Why is signing a user in from an access token plus a userinfo call unsafe?
Why is signing a user in from an access token plus a userinfo call unsafe?
8.[3p] Which checks must an ID token pass before you read sub from it?
Which checks must an ID token pass before you read sub from it?
Select all that apply
9.[2p] Which claim, paired with iss, is the stable identifier to link a local account to? One word.
Which claim, paired with iss, is the stable identifier to link a local account to? One word.