# IdP-Initiated SSO - Audience is Ignored

**URL:** <https://community.auth0.com/t/idp-initiated-sso-audience-is-ignored/7531>\
**Category:** Get Help\
**Tags:** jwt, access-token, samlp, sso, saml\
**Created:** [July 15, 2017, 3:01am UTC](https://community.auth0.com/t/idp-initiated-sso-audience-is-ignored/7531 "2017-07-15T03:01:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan11](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan11/32/5458_2.png) [@dan11](https://community.auth0.com/u/dan11)\
**Post date:** [July 15, 2017, 3:01am UTC](https://community.auth0.com/t/idp-initiated-sso-audience-is-ignored/7531/1 "2017-07-15T03:01:17Z")

</div>

In a scenario where I am using Auth0 as the service provider and a working SAML connection with an external identity provider, I want to get an access token that comes in as a JWT with an audience claim that is an API. identifier Right now it is an opaque, unencoded token (eg. `access_token=Cj0Jil1FYm3lTa_o`). My application relies on a JWT that has an “aud” claim with the corresponding audience.

My configuration within the “Edit SAMLP Identity Provider connection” modal looks like this:

**Response Protocol:**  
OpenID Connect

**Query Params:**  
`redirect_uri=my_redirect&scope=openid email&response_type=id_token token&audience=my_audience_api_identifier`

---

<div class="post-metadata">

**Author:** ![dan11](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan11/32/5458_2.png) [@dan11](https://community.auth0.com/u/dan11)\
**Post date:** [July 16, 2017, 6:31am UTC](https://community.auth0.com/t/idp-initiated-sso-audience-is-ignored/7531/2 "2017-07-16T06:31:55Z")

</div>

A workaround is recycling the silent authorization flow that already exists for the regular implicit flow as soon as the SAML flow hits the “redirect\_uri” with an access token

---

<div class="post-metadata">

**Author:** ![dan11](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan11/32/5458_2.png) [@dan11](https://community.auth0.com/u/dan11)\
**Post date:** [July 18, 2017, 5:07am UTC](https://community.auth0.com/t/idp-initiated-sso-audience-is-ignored/7531/3 "2017-07-18T05:07:30Z")

</div>

I would still love some explanation on this subject other than the aforementioned workaround

---

<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:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/idp-initiated-sso-audience-is-ignored/7531/4 "2018-03-02T05:55:24Z")

</div>


