Join our Newsletter — 33% off our NHI Course
Home› FAQ› Authentication, Authorisation & Trust› What is an example of JWT Audience (aud)…
Authentication, Authorisation & Trust

What is an example of JWT Audience (aud) Claim in practice?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 20, 2026 Domain: Authentication, Authorisation & Trust

The JWT audience (aud) claim identifies the intended recipient of the token. For example, a token issued for one API should include that API as the audience, and the resource server should reject tokens meant for another service. Validating aud prevents token substitution between applications that trust the same identity provider.

What the aud claim does in a real token flow

The audience claim is not just a label in the JWT payload, it is a receiving-scope check. In practice, it tells the resource server which token recipients are allowed to accept the token, so the same bearer token cannot be reused across different APIs or services that happen to trust the same issuer.

That matters most when one identity provider issues tokens for multiple applications. If the audience is too broad, a token minted for one service may be accepted by another service that never should have seen it. The practical control is simple: compare the aud value to the expected resource identifier before authorizing the request.

For OAuth-based deployments, the token audience should line up with the target resource, not just the client that asked for the token. NHIMG’s OAuth 2.0 and OpenID Connect Guide for Identity Teams is useful here because it explains how scopes, token types, and client roles fit together around that boundary.

How an aud check is used to stop token substitution

An aud claim becomes visible in the verification step. The resource server should accept the token only if the intended recipient matches its own identifier, and reject the token if it was issued for a different API, service, or environment. That prevents a valid token from being replayed in a place where its privileges were never meant to apply.

Example: a token with an audience of https://api.example.com/payments should be accepted by the payments API and rejected by the profile API. Even if both services trust the same identity provider, the audience check keeps token use bound to the correct resource.

This same idea shows up in token handling guidance that treats JWT validation as more than signature verification. NHIMG’s Token and Session Security Guide covers audience checking alongside token lifetime, replay resistance, and revocation concerns.

In modern service-to-service architectures, audience binding is also part of workload identity design. A workload token should be scoped to the specific service or trust domain that will consume it, which is why Guide to SPIFFE and SPIRE is relevant when teams are using JWTs for workload authentication.

Where audience validation fails in practice

aud validation fails when teams treat JWTs as “valid if signed” and skip recipient checks. That mistake can enable token confusion across APIs, especially when one platform issues broad tokens for convenience or when different services share the same token validation library but not the same expected audience rules.

A related failure mode is accepting tokens from one trust domain in another because the service only checks issuer and signature. That is enough to confirm who minted the token, but not enough to confirm who the token was meant for.

The strongest real-world reminder is token forgery and reuse after key compromise. NHIMG’s Microsoft Storm-0558 key breach 2023 shows why recipient validation matters alongside signing-key protection, because a forged token is dangerous precisely when downstream services accept it too broadly.

If an application also accepts bearer tokens from external clients, the same audience discipline should be applied with API-specific authorization rules. The OWASP API Security Top 10’s focus on broken authorization is a good match for this control point, and RFC 8707 makes the same design principle explicit by letting clients request resource-specific tokens.

Risk and Threat Considerations

Audience mistakes create a lateral trust problem, not just a parsing bug. If multiple services trust the same issuer but do not enforce a narrow aud value, a token stolen from one workflow can be replayed against another API that never should have accepted it.

Failure mechanism: The resource server validates the JWT signature and issuer, but fails to confirm that the aud value matches the exact service or API it is currently protecting.

Impact: Token substitution becomes possible across applications, which can expose data, expand the blast radius of token theft, and allow unauthorized use of otherwise valid credentials.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API2 — Broken AuthenticationAudience validation is part of preventing token misuse across APIs.
Recommendation — Validate aud with the expected API before accepting a JWT.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementJWT audience handling is part of controlling token lifecycle and use conditions.
IA-9 — Identification and Authentication (Non-Organizational Users)JWTs used by external clients or services need recipient-bound authentication checks.
Recommendation — Enforce token audience checks as part of authenticator handling. Bind each token to its intended recipient and reject mismatched audiences.
NIST Zero Trust (SP 800-207)Zero Trust ArchitectureAudience checks support least-privilege trust boundaries between services.
Recommendation — Verify the intended service audience before granting access.

Practitioner Guidance

What to verify: The expected audience value should be explicit in every resource server, not inferred from the issuer or copied from another service. Test both positive and negative cases, including a token issued for a sibling API, a different environment, and a different tenant or cluster where applicable.

Decision rule: If a token can be used against more than one service, treat that as a design smell unless the audience model is intentionally shared and documented. In most cases, the safer pattern is one token audience per protected resource boundary.

Practitioner takeaway: Treat aud as a hard recipient check, not a documentation field, because signature validation alone proves who issued the token, while audience validation proves where the token is allowed to work.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org