SECTION 02 · 8 MIN READ & EXPLORE
Bearer: possession is the proof
Separate the way a token is sent from its format and the way it was issued.
DEMONSTRATION CONTENTA bearer token grants access to whoever possesses it, subject to the server’s validation and access rules. The header can be as simple as:
Authorization: Bearer example-token-not-a-real-credential
Three separate questions
- Transport: How is the token included in the request? Here, through the Bearer authentication scheme.
- Format: Is the token opaque or structured? A bearer token does not have to be a JWT.
- Issuance: How did the client obtain it? OAuth is one possible context; the header alone does not describe that process.
Debug with a sequence
Check whether the client sent a token, whether it is valid for this service, whether it has expired, and whether its permissions cover the operation. Only apply checks such as JWT claims or signatures when the token format and validation model call for them.
Connect the methods
Basic sends encoded credentials. Digest uses a challenge-dependent computed response. Bearer presents a token whose possession matters. For each, explain what must be protected and why TLS is still important.
That explanation is your finishing point for this demonstration course.
Take a moment to explain the idea in your own words.