Bird
0
0

Given this OAuth 2.0 flow snippet:

medium📝 Predict Output Q4 of 15
Rest API - Authentication and Authorization
Given this OAuth 2.0 flow snippet:
1. Client requests authorization code
2. User grants permission
3. Client exchanges code for token
4. Client uses token to access resource
What is the purpose of step 3?
ATo obtain an access token
BTo get user credentials
CTo refresh the access token
DTo revoke the authorization
Step-by-Step Solution
Solution:
  1. Step 1: Understand step 3 in OAuth 2.0

    Step 3 is when the client exchanges the authorization code for an access token.
  2. Step 2: Match purpose to options

    Only To obtain an access token correctly describes this step's purpose.
  3. Final Answer:

    To obtain an access token -> Option A
  4. Quick Check:

    Step 3 = get access token [OK]
Quick Trick: Exchange code for token in step 3 [OK]
Common Mistakes:
  • Confusing token exchange with getting credentials
  • Mixing refresh token with access token
  • Thinking step 3 revokes authorization

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes