api-management
Installation
SKILL.md
API Management
A service whose design sets exposesAPI.auth sits behind the platform's API
gateway. The gateway terminates authentication: it validates the caller's
token against the org's IDP and passes the verified identity down as headers.
Your code trusts those headers and never sees a token.
Constraints
Never validate a JWT. The gateway did it already, against keys your service
does not have — the signing keys, the client_id and the IDP's discovery URL are
all platform-side. A service that parses or verifies tokens is duplicating the
gateway and will disagree with it.
Never issue one either. No /auth/login, /auth/register, /auth/logout,
or any token endpoint on any backend. The IDP owns token issuance — see
thunder-authentication.