Pcornel
Automation · Automation Security

API Authentication

Cheat sheet · https://pcornel.dk/topic.php?topic=5906

Back to the Topic

Answer

API Authentication secures machine-to-machine automation calls by proving caller identity through an appropriate mechanism such as short-lived tokens, mTLS, signed requests or scoped keys before authorization is evaluated.

Remember

  • Authenticated API caller ≠ authorized API operation.
  • Token accepted ≠ token intended for this audience.
  • TLS encrypted ≠ server identity trusted.
  • API key present ≠ workload identity attributable.

First checks

  • Auth methods per API (OAuth client credentials, mTLS, tokens) — strength
  • Token scopes — least privilege
  • TLS verification enabled — transport

Verify in this order

automation → strong auth → API

Where it usually breaks

API-authentication evidence proves caller authentication for the observed request path; it does not prove resource authorization or business-operation correctness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5906

Confirmation

Confirm action

Continue?