subject claim
The sub claim in a token, which identifies the user or service the token is about.
In more detail
It is the identity an API acts for, so it must never be read from an unverified token. Attribute-based policies also call the caller the subject.
Related terms
- claim — One statement inside a token, as a name and value, such as sub (subject), exp (expiry), iss (issuer), aud (audience) or scope.
- JSON Web Token — A compact signed token made of three base64url parts separated by dots: a header, a payload of claims and a signature.
- attribute-based access control — An authorization model that decides each request from attributes of the subject, the resource and the environment, such as owner, department or time of day.
- trust policy — A JSON document on a cloud role that says who may assume the role and under which conditions.
- glob pattern — A pattern that matches names using * for any run of characters, a question mark for one character and [abc] for one of a set.
Taught in
- JSON Web Tokens — Modern API Architecture: REST, GraphQL & gRPC
- RBAC Contrasted With ABAC — Modern API Architecture: REST, GraphQL & gRPC
- Keyless Authentication: OIDC to the Cloud — Continuous Integration & Continuous Delivery Pipelines