API Testing · Junior · Question 46 of 75
What is Basic authentication?
- 1A login form that sends the password as plain JSON
- 2Username and password Base64-encoded in
Authorization - 3A method that needs no credentials at all
Show the answer
Correct answer: Username and password Base64-encoded in Authorization
Explanation
Base64 is not encryption, so Basic auth is safe only over HTTPS. A missing or wrong header should return 401 with WWW-Authenticate.