Bird
0
0

If a REST API documentation shows this example header:

medium📝 Predict Output Q5 of 15
Rest API - API Documentation
If a REST API documentation shows this example header:
Authorization: Basic dXNlcjpwYXNz

What does this header represent?
ABasic authentication with base64 encoded username and password
BAPI key sent in the header
COAuth 2.0 token authentication
DA Bearer token authentication
Step-by-Step Solution
Solution:
  1. Step 1: Identify the 'Basic' keyword in Authorization header

    'Basic' indicates Basic Authentication using base64 encoded credentials.
  2. Step 2: Understand the encoding format

    The string after 'Basic' is base64 encoding of 'username:password'.
  3. Final Answer:

    Basic authentication with base64 encoded username and password -> Option A
  4. Quick Check:

    Basic = base64 username:password [OK]
Quick Trick: Basic auth uses base64 encoded user:pass in header [OK]
Common Mistakes:
MISTAKES
  • Confusing Basic with Bearer tokens
  • Thinking it's OAuth 2.0
  • Assuming API key is sent this way

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes