Bird
Raised Fist0

Given this OAuth 2.0 flow snippet:

medium📝 Predict Output Q13 of Q15
Rest API - Authentication and Authorization
Given this OAuth 2.0 flow snippet:
1. Client requests authorization code
2. User grants permission
3. Client receives authorization code
4. Client sends authorization code to token endpoint
5. Token endpoint returns access token

What is the output after step 5?
AClient has an access token to access protected resources
BClient has the user's password
CClient can directly access user data without token
DClient must request authorization code again
Step-by-Step Solution
Solution:
  1. Step 1: Follow OAuth 2.0 flow steps

    After step 5, the client receives an access token from the token endpoint.
  2. Step 2: Understand access token purpose

    The access token lets the client access protected user data securely without needing the password.
  3. Final Answer:

    Client has an access token to access protected resources -> Option A
  4. Quick Check:

    Access token received = Access to resources [OK]
Quick Trick: Access token means access granted to resources [OK]
Common Mistakes:
MISTAKES
  • Thinking client gets user password
  • Assuming token is not needed for access
  • Believing authorization code must be requested again

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes