Basic authentication authenticates REST API requests by placing a username and password in the HTTP header. It is simple to implement but insecure when credentials travel over standard HTTP. section 23.3.2
Use basic authentication with these operational constraints:
- Protect API calls with HTTPS; standard HTTP sends the credentials in unencrypted cleartext. section 23.3.2
- Treat stolen credentials as a direct access risk because an attacker can use them to reach the API. section 23.3.2
- Distinguish it from bearer authentication, API key authentication, and OAuth 2.0, which provide alternative request-authentication approaches. section 23.4
Protected API request
A client includes a username and password in an HTTP header when requesting an API resource. The server authenticates the request and either fulfills it or refuses it for invalid credentials or insufficient permissions; HTTPS protects the transmission. section 23.3.2


