audience
The recipient a token is meant for, named in its aud claim, such as one particular API.
In more detail
Checking the audience stops a token issued for one service being replayed against another. A valid signature over the wrong audience is still the wrong grant.
Example
The course's policy binds each workload to the audiences it may request.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.
- issuer — The party that created and signed a token, named in its iss claim.
- resource server — In OAuth, the API that holds the protected data and accepts access tokens.
- OAuth scope — A named permission a token carries, such as tasks:read or tasks:write, limiting what the token may be used for.
- JSON Web Token — A compact signed token made of three base64url parts separated by dots: a header, a payload of claims and a signature.
- workload identity — An identity for software rather than a person, proven by a signed token from the platform it runs on instead of a stored key.
Taught in
- Retrieval That Finds The Right Thing — AI Engineering: LLM Apps, RAG & Agents
- Remote Servers And Trust — AI Engineering: LLM Apps, RAG & Agents
- JSON Web Tokens — Modern API Architecture: REST, GraphQL & gRPC
- OAuth Two And OpenID Connect — Modern API Architecture: REST, GraphQL & gRPC
- Workload Identity Federation: Eliminating Static Keys — Cloud Security & DevSecOps Engineering
- Zero-Trust Network Access & IdP Federation — Cloud Security & DevSecOps Engineering
- The Options Pattern: Strongly Typed Configuration — Modern .NET Core, C# & Enterprise Microservices
- Authentication: JWTs and Claims — Modern .NET Core, C# & Enterprise Microservices
- Authentication Versus Authorisation — Application Security & Threat Modeling for Engineers
- Workload Identity — Application Security & Threat Modeling for Engineers
References
- RFC 7519: JSON Web Token (JWT)
- RFC 9700: Best Current Practice for OAuth 2.0 Security
- RFC 7519: aud claim
- RFC 7519: aud claim