liveBook · Manning

Basic authentication

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

Basic authentication is an HTTP authentication method that transmits a username and password in an HTTP header, typically encoded but not inherently encrypted.

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

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Defines the request mechanism and security limitation, but stops short of implementation commands or protocol internals.
Examples
Uses API requests with HTTP-header credentials and HTTPS-protected transmission as concrete illustrations.
What it assumes
Assumes HTTP headers and REST API requests, while defining the authentication method and its primary security limitation.
What you can do after
Apply it to authenticate REST API requests while protecting credentials with HTTPS.
How it connects
Contrasts basic authentication with bearer authentication, API key authentication, OAuth 2.0, HTTPS, and REST APIs.

Also explained in

Compare how 3 books explain basic authentication →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 2 Advanced Networking and Security. The section links point to the parts of the book it draws on.