# SAMLResponse Audience is invalid

**URL:** <https://community.auth0.com/t/samlresponse-audience-is-invalid/100424>\
**Category:** Get Help\
**Tags:** connections, saml-enterprise-connection\
**Created:** [February 13, 2023, 11:07pm UTC](https://community.auth0.com/t/samlresponse-audience-is-invalid/100424 "2023-02-13T23:07:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![primo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/primo/32/44342_2.png) [@primo](https://community.auth0.com/u/primo)\
**Post date:** [February 13, 2023, 11:07pm UTC](https://community.auth0.com/t/samlresponse-audience-is-invalid/100424/1 "2023-02-13T23:07:37Z")

</div>

Hello there 👋  
I’m facing a problem using a SAML enterprise connection for the SP initiated SAML flow.  
The IdP is sending a SAMLResponse but Auht0 Logs show:

```auto
Audience is invalid. Configured: urn:auth0:tigerpistol-qa:uberall-dev

```

The saml response contains the correct `<saml:Audience>` tag:

```auto
<saml:Conditions>
			<saml:AudienceRestriction>
				<saml:Audience>
					urn:auth0:tigerpistol-qa:uberall-dev
				</saml:Audience>
			</saml:AudienceRestriction>
		</saml:Conditions>

```

Did someone face this issue as well? Which could be the problematic node in the assertion that could cause this problem?

Thank you!

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 14, 2023, 2:47am UTC](https://community.auth0.com/t/samlresponse-audience-is-invalid/100424/3 "2023-02-14T02:47:28Z")

</div>

Hi @primo,

Welcome to the Auth0 Community!

This is a documented error on our Troubelshoot SAML Configurations page.

In short, the error happens when the `audience` element from the IdP SAML response does not math the value expected by Auth0. Auth0 expects the value to be the **Entity ID** for the connection.

See [this doc](https://auth0.com/docs/troubleshoot/authentication-issues/troubleshoot-saml-configurations) for more instructions.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 28, 2023, 2:48am UTC](https://community.auth0.com/t/samlresponse-audience-is-invalid/100424/4 "2023-02-28T02:48:15Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
