API Testing · Junior · Question 46 of 75

What is Basic authentication?

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.

Further reading

Problem with a question

API Testing · Junior · question 46

Test yourself

Take the API Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz