bearer token

A token that grants access to whoever presents it, sent as Authorization: Bearer <token>, without any further proof of identity.

A stolen bearer token works for anyone until it expires or is revoked.

In more detail

Protect it like cash: send it only over HTTPS, keep it out of addresses and logs, give it a short expiry and narrow scopes. It saves sending a password on every request, and the server still verifies its claims before authorising work.

Examples

On a runner, ACTIONS_ID_TOKEN_REQUEST_TOKEN is sent as a bearer token to request the identity token.
Authorization: Bearer eyJhbGciOi...   # as readable as Basic credentials over plain HTTP
Exercise: change wire.py to send JSON with a bearer token and confirm it is just as visible

Related terms

Taught in

References

Certification courses