Join our Newsletter — 33% off our NHI Course
Home› Glossary› Authentication, Authorisation & Trust› Audience URI (Entity ID)
Authentication, Authorisation & Trust

Audience URI (Entity ID)

← Back to Glossary
By NHI Mgmt Group Updated November 3, 2026 Domain: Authentication, Authorisation & Trust

An Audience URI, also called an Entity ID, is the identifier that names the intended recipient of a SAML assertion. The identity provider includes it in the token audience so the assertion is only accepted by the matching service provider.

What an Audience URI does in SAML

An Audience URI, or Entity ID, is the value that tells a SAML assertion which service provider it was meant for. It is part of the trust boundary for federated sign-on: the identity provider can issue one assertion, but the recipient should accept it only if the audience matches the intended relying party.

Why audience restriction matters

The audience field is not a cosmetic label, it is a core protection against assertion replay and token substitution. If a SAML assertion is accepted by the wrong service provider, the result can be unintended access, confused-deputy behaviour, or cross-application misuse of a valid login response.

That is why audience validation is usually treated as a hard check during federation processing. A service provider that skips or weakens it may still be able to parse the assertion, but it loses the guarantee that the assertion was issued for that specific application.

How the value is used in federation design

The Audience URI is typically agreed in advance between the identity provider and the service provider and must stay stable enough to serve as a trust anchor. It is closely related to service-provider registration, metadata exchange, and the configuration that maps a federated application to its expected issuer and recipient values.

In practice, teams often treat the Entity ID as part of the application’s identity profile. It helps distinguish one relying party from another even when multiple apps share the same identity provider, the same user population, or similar SSO flows.

What to check when troubleshooting

When a SAML flow fails, audience mismatch is a common cause of assertion rejection. The practical checks are whether the identity provider minted the expected audience value, whether the service provider is validating against the right identifier, and whether test, staging, and production environments are using distinct entity identifiers.

Small configuration differences matter here. A renamed application, a copied federation profile, or an environment swap can leave the assertion technically valid but not valid for the recipient that receives it.

Risk and Threat Considerations

Audience validation is one of the main controls that prevents a valid SAML assertion from being replayed or redirected to a different relying party. If the audience check is missing, relaxed, or inconsistently configured across environments, a legitimate assertion can become usable outside its intended trust boundary.

Failure mechanism: An attacker or misrouted integration can present a signed assertion to a service provider that fails to enforce the expected audience, allowing the token to be accepted in the wrong context.

Impact: The result can be unauthorized access, session confusion, and a broader trust failure across federated applications that rely on the same identity provider.

Standards & Framework Alignment

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

NIST SP 800-53 Rev 5, OWASP ASVS, NIST SP 800-63 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-2 — Identification and Authentication (Organizational Users)SAML audience validation supports authenticated federated user access decisions.
IA-5 — Authenticator ManagementEntity IDs depend on controlled issuance and validation of federation trust material.
Recommendation — Enforce IA-2 so federated assertions are accepted only for the intended service. Manage federation identifiers and related trust data so audience checks remain stable and correct.
OWASP ASVSV10 — OAuth and OIDCAudience restriction is a shared token-recipient control across federation protocols.
Recommendation — Verify token audience handling so assertions and tokens cannot be replayed to the wrong relying party.
NIST SP 800-63Digital Identity GuidelinesDefines federation and assertion validation expectations for digital identity transactions.
Recommendation — Apply the federation guidance to validate recipient and audience values before accepting assertions.
NIST CSF 2.0PR.AA-05 — Identity and Access ManagementAudience checking is part of enforcing that identities reach only the intended application.
Recommendation — Implement audience validation as part of identity and access enforcement for federated logins.

Practitioner Guidance

Why practitioners should care: Treat the Audience URI as an application-specific control, not a naming convenience. The value should be governed alongside federation metadata so that application owners, identity teams, and platform teams agree on what the recipient identifier is and where it must be enforced.

What to watch for: Investigate any SAML implementation that accepts multiple audience values without clear justification, reuses identifiers across unrelated apps, or behaves differently between environments. Those patterns often signal configuration drift rather than a true interoperability need.

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 November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org