Bird
0
0

Which of the following is the correct format of the Authorization header for Basic Authentication?

easy📝 Syntax Q12 of 15
Rest API - Authentication and Authorization
Which of the following is the correct format of the Authorization header for Basic Authentication?
AAuthorization: ApiKey base64encodedstring
BAuthorization: Bearer base64encodedstring
CAuthorization: Token base64encodedstring
DAuthorization: Basic base64encodedstring
Step-by-Step Solution
Solution:
  1. Step 1: Recall the header format for Basic Authentication

    The header must start with the word 'Basic' followed by a space and then the base64 encoded credentials.
  2. Step 2: Eliminate other header types

    'Bearer', 'Token', and 'ApiKey' are used in other authentication schemes, not Basic Auth.
  3. Final Answer:

    Authorization: Basic base64encodedstring -> Option D
  4. Quick Check:

    Basic Auth header starts with 'Basic' [OK]
Quick Trick: Basic Auth header always starts with 'Basic ' [OK]
Common Mistakes:
  • Using 'Bearer' instead of 'Basic'
  • Omitting the space after 'Basic'
  • Confusing with other auth schemes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes