token-auth-lab

A machine-to-machine records API. The protected endpoints require target auth and answer 401 without it.

HTTP Basic surface

Send Authorization: Basic base64(client_id:client_secret). Then:

OAuth2 client-credentials surface

POST /oauth/token with grant_type=client_credentials (client id/secret in the body or a Basic header) returns a Bearer token. Then send Authorization: Bearer <token>:

Machine-readable: /openapi.json · health: /healthz.