key identifier
A short name in a token header, kid, that says which of the verifier’s trusted keys was used to sign it.
In more detail
It lets old and new keys be valid side by side during rotation. The token only selects from a server-controlled set; an unknown key identifier must fail closed, and a token must never be allowed to supply its own key.
Related terms
- key rotation — Replacing a password or key with a new one on a schedule or after a suspected leak, and re-encrypting what it protected.
- JSON Web Key Set — A standard JSON document that publishes a set of public keys, each with a key identifier, so clients can verify tokens.
- signing key — The secret key used to sign tokens or messages, together with the key used to verify them, which may be the same secret or the public half of a pair.
- deny by default — The rule that anything not explicitly allowed is refused, including when the facts needed to decide are missing.
Taught in
- JSON Web Tokens — Modern API Architecture: REST, GraphQL & gRPC
- Scopes And Key Rotation — Modern API Architecture: REST, GraphQL & gRPC