# \#audience

**URL:** https://community.auth0.com/tag/audience/210.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Implement multiple audiences in an access token](https://community.auth0.com/t/implement-multiple-audiences-in-an-access-token/98871)

<div class="topic-metadata">

**Author:** [@william3](https://community.auth0.com/u/william3)\
**Replies:** 8\
**Last updated:** [December 3, 2025, 4:49pm UTC](https://community.auth0.com/t/implement-multiple-audiences-in-an-access-token/98871 "2025-12-03T16:49:19Z")

</div>

Feature: Implement multiple audiences in an access token Description: When requesting an access token, allow the client to specify multiple audiences so they can present that access token to multiple servers for author…

---

## [How to silently re-authenticate a client to a new audience](https://community.auth0.com/t/how-to-silently-re-authenticate-a-client-to-a-new-audience/79207)

<div class="topic-metadata">

**Author:** [@simon.radinn.com](https://community.auth0.com/u/simon.radinn.com)\
**Replies:** 4\
**Last updated:** [March 8, 2022, 7:32am UTC](https://community.auth0.com/t/how-to-silently-re-authenticate-a-client-to-a-new-audience/79207 "2022-03-08T07:32:39Z")

</div>

We have a released app in the market and is authenticated using: const credentials = await auth0.webAuth.authorize({ scope, audience, connection, }); The issue is that the audience were ap…

---

## [Audience in rules](https://community.auth0.com/t/audience-in-rules/76640)

<div class="topic-metadata">

**Author:** [@bogdanmihalskiy002](https://community.auth0.com/u/bogdanmihalskiy002)\
**Replies:** 2\
**Last updated:** [January 19, 2022, 2:02pm UTC](https://community.auth0.com/t/audience-in-rules/76640 "2022-01-19T14:02:44Z")

</div>

I’m using rules to return user metadata in GET /userinfo endpoint. To do this i must use context.idToken\[namespace\]= user.user\_metadata; However the ‘namespace’ variable must contain URL, otherwise metadata will not…

---

## [Preventing a Multiple Audiences Array](https://community.auth0.com/t/preventing-a-multiple-audiences-array/75327)

<div class="topic-metadata">

**Author:** [@jakub.tkac](https://community.auth0.com/u/jakub.tkac)\
**Replies:** 1\
**Last updated:** [December 23, 2021, 5:24pm UTC](https://community.auth0.com/t/preventing-a-multiple-audiences-array/75327 "2021-12-23T17:24:01Z")

</div>

Hi, We are currently developing a Vue SPA with help of the Auth0 SPA js SDK, which requests access tokens and sends them to our API. Our API utilizes AWS STS to receive short term credentials for accessing our data lay…

---

## [Invalid token: "The audience' is invalid"](https://community.auth0.com/t/invalid-token-the-audience-is-invalid/75307)

<div class="topic-metadata">

**Author:** [@rizwan](https://community.auth0.com/u/rizwan)\
**Replies:** 3\
**Last updated:** [December 22, 2021, 11:27am UTC](https://community.auth0.com/t/invalid-token-the-audience-is-invalid/75307 "2021-12-22T11:27:35Z")

</div>

Hi, I’ve created a nextjs front end and c# backend following the following guides and managed to get both working successfully: I’m now trying to wire them up to get the nextjs app to call the api backend. The api …

---

## [Support for non default audience in auth0-angular](https://community.auth0.com/t/support-for-non-default-audience-in-auth0-angular/70619)

<div class="topic-metadata">

**Author:** [@jack.macdonald](https://community.auth0.com/u/jack.macdonald)\
**Replies:** 3\
**Last updated:** [October 7, 2021, 8:45am UTC](https://community.auth0.com/t/support-for-non-default-audience-in-auth0-angular/70619 "2021-10-07T08:45:10Z")

</div>

@auth0/auth0-angular - latest version (currently 1.7.0) Hi, We’re struggling with the lack of support for non default audiences in auth0-angular. On auth0-spa-js it’s possible to pass audience as a parameter to methods…

---

## [Can't set default audience in Tenant Settings page](https://community.auth0.com/t/cant-set-default-audience-in-tenant-settings-page/67348)

<div class="topic-metadata">

**Author:** [@khanh.le](https://community.auth0.com/u/khanh.le)\
**Replies:** 3\
**Last updated:** [August 9, 2021, 3:52pm UTC](https://community.auth0.com/t/cant-set-default-audience-in-tenant-settings-page/67348 "2021-08-09T15:52:41Z")

</div>

Hello Auth0 Community, I would like to get help when setting the Default audience in my tenant setting page. I have tried the following URI but none of them works: http://localhost:5001 https://webhook-staging.botbo…

---

## [Getting Bad Audience while calling Custom API for Auth0 User Management](https://community.auth0.com/t/getting-bad-audience-while-calling-custom-api-for-auth0-user-management/65300)

<div class="topic-metadata">

**Author:** [@assadullahch](https://community.auth0.com/u/assadullahch)\
**Replies:** 6\
**Last updated:** [June 30, 2021, 3:47pm UTC](https://community.auth0.com/t/getting-bad-audience-while-calling-custom-api-for-auth0-user-management/65300 "2021-06-30T15:47:37Z")

</div>

I saw so many questions on this topic in the community but unfortunately no luck so far. I’m using Auth0 universal flow for user authentication which works perfectly fine. The problem comes when I try to call Auth0 Mana…

---

## [A Typical SaaS Application](https://community.auth0.com/t/a-typical-saas-application/60722)

<div class="topic-metadata">

**Author:** [@rubenhak](https://community.auth0.com/u/rubenhak)\
**Replies:** 3\
**Last updated:** [April 9, 2021, 12:49pm UTC](https://community.auth0.com/t/a-typical-saas-application/60722 "2021-04-09T12:49:56Z")

</div>

Hey Folks, I’m working on a typical SaaS application. There is a user facing page: https://portal.example.com and in internal page for admins: https://admin.example.com. Backend is node.js application. The same backend …

---

## [Invalid audience with Go API backend (Frontend: React SPA)](https://community.auth0.com/t/invalid-audience-with-go-api-backend-frontend-react-spa/60267)

<div class="topic-metadata">

**Author:** [@importhuman](https://community.auth0.com/u/importhuman)\
**Replies:** 1\
**Last updated:** [March 31, 2021, 2:43pm UTC](https://community.auth0.com/t/invalid-audience-with-go-api-backend-frontend-react-spa/60267 "2021-03-31T14:43:49Z")

</div>

Getting an invalid audience when I try to connect to the API with the frontend. Have tried sending request with Postman, only works with the token that we get in the “test” section of our API dashboard. I’m guessing this…

---

## [Power Apps Oath2 to Auth0 leads to incorrect audience and issuer in JWT](https://community.auth0.com/t/power-apps-oath2-to-auth0-leads-to-incorrect-audience-and-issuer-in-jwt/54187)

<div class="topic-metadata">

**Author:** [@Spriggsy](https://community.auth0.com/u/Spriggsy)\
**Replies:** 0\
**Last updated:** [December 2, 2020, 1:08am UTC](https://community.auth0.com/t/power-apps-oath2-to-auth0-leads-to-incorrect-audience-and-issuer-in-jwt/54187 "2020-12-02T01:08:23Z")

</div>

Hi, We’re trying to see if we can get a Microsoft ‘Power App’ to query an api that’s part of an already well working Auth0-protected app ecosystem. Now, PowerApps offers an Oauth2 connection implementation, but it’s a …

---

## [How to make the audience optional or to stop setting it?](https://community.auth0.com/t/how-to-make-the-audience-optional-or-to-stop-setting-it/31451)

<div class="topic-metadata">

**Author:** [@leandro.iriarte](https://community.auth0.com/u/leandro.iriarte)\
**Replies:** 3\
**Last updated:** [September 30, 2019, 11:43pm UTC](https://community.auth0.com/t/how-to-make-the-audience-optional-or-to-stop-setting-it/31451 "2019-09-30T23:43:09Z")

</div>

Our service issues tokens to many consumers. We are now obtaining a token following the standard procedure, sending the API identifier as the audience. I understand that the audience claim is optional for JWTs (https://…

---

## [\[SPA + API\] Can NOT Get Audience Correct](https://community.auth0.com/t/spa-api-can-not-get-audience-correct/20183)

<div class="topic-metadata">

**Author:** [@jsu317](https://community.auth0.com/u/jsu317)\
**Replies:** 3\
**Last updated:** [January 25, 2019, 5:36pm UTC](https://community.auth0.com/t/spa-api-can-not-get-audience-correct/20183 "2019-01-25T17:36:36Z")

</div>

Goal: Have SPA + API Work. I have followed the tutorial to create one API and one Application. I have tried many methods to get the JWT, so that I can make API calls from client Javascript. The problem is no matter how…

---

## [Unable to set default audience](https://community.auth0.com/t/unable-to-set-default-audience/9146)

<div class="topic-metadata">

**Author:** [@brent.lemons](https://community.auth0.com/u/brent.lemons)\
**Replies:** 1\
**Last updated:** [December 14, 2018, 3:19pm UTC](https://community.auth0.com/t/unable-to-set-default-audience/9146 "2018-12-14T15:19:15Z")

</div>

I have been able to jump through hoops to get the Spring OAuth2 ClientCredentials to set an audience for authentication. I would prefer for my end users to not have to jump through the same hoops. I have set the default …

---

## [Access Token scope issue](https://community.auth0.com/t/access-token-scope-issue/9107)

<div class="topic-metadata">

**Author:** [@mdka.dasd](https://community.auth0.com/u/mdka.dasd)\
**Replies:** 4\
**Last updated:** [January 3, 2018, 9:14pm UTC](https://community.auth0.com/t/access-token-scope-issue/9107 "2018-01-03T21:14:47Z")

</div>

I’ve been struggling with auth-js bundle trying to get an access token with the following scopes: read:usersand read:user\_idp\_tokens as mentioned on this answer and using audience: YOUR\_AUTH0\_DOMAIN/userinfo as document…

---

## [Is it possible to skip the user consent prompt for an ADFS connection?](https://community.auth0.com/t/is-it-possible-to-skip-the-user-consent-prompt-for-an-adfs-connection/8710)

<div class="topic-metadata">

**Author:** [@dillon](https://community.auth0.com/u/dillon)\
**Replies:** 4\
**Last updated:** [November 16, 2017, 1:37pm UTC](https://community.auth0.com/t/is-it-possible-to-skip-the-user-consent-prompt-for-an-adfs-connection/8710 "2017-11-16T13:37:49Z")

</div>

I’ve set up an ADFS connection, and would like to skip the user consent prompt that displays the first time a user signs in. I’ve found a few solutions for this if a custom API is configured for the audience (How do I sk…

---

## [Patch for user-meta data generates bad audience error](https://community.auth0.com/t/patch-for-user-meta-data-generates-bad-audience-error/8706)

<div class="topic-metadata">

**Author:** [@twoolf](https://community.auth0.com/u/twoolf)\
**Replies:** 1\
**Last updated:** [November 10, 2017, 6:08pm UTC](https://community.auth0.com/t/patch-for-user-meta-data-generates-bad-audience-error/8706 "2017-11-10T18:08:33Z")

</div>

The api management description (Manage Metadata Using the Management API - Auth0 Docs) for Patch sounds easy, but with implementation it is generating a bad audience error. Any suggestions on what could be producing tha…

---

## [Restrict authorization request by Audience?](https://community.auth0.com/t/restrict-authorization-request-by-audience/8475)

<div class="topic-metadata">

**Author:** [@shaneoborn](https://community.auth0.com/u/shaneoborn)\
**Replies:** 1\
**Last updated:** [October 13, 2017, 4:07pm UTC](https://community.auth0.com/t/restrict-authorization-request-by-audience/8475 "2017-10-13T16:07:55Z")

</div>

In OIDC, it is unclear to me what purpose it serves to have the client specify an audience in its authorization request unless you can restrict what audiences a specific client is allowed to obtain a token for. Is it po…

---

## [Locking down audience with password-realm grant](https://community.auth0.com/t/locking-down-audience-with-password-realm-grant/8389)

<div class="topic-metadata">

**Author:** [@iyablochnikov](https://community.auth0.com/u/iyablochnikov)\
**Replies:** 1\
**Last updated:** [October 4, 2017, 11:05pm UTC](https://community.auth0.com/t/locking-down-audience-with-password-realm-grant/8389 "2017-10-04T23:05:53Z")

</div>

I have two versions of an API: prod and dev. So I defined two separate API’s, clients and connections/realms. I need to use the password-realm grant to support some legacy functionality. The problem is that if I have va…

---

## [Lock in popup mode, audience and oidcConformant](https://community.auth0.com/t/lock-in-popup-mode-audience-and-oidcconformant/8368)

<div class="topic-metadata">

**Author:** [@etienne.deboursetty](https://community.auth0.com/u/etienne.deboursetty)\
**Replies:** 2\
**Last updated:** [October 3, 2017, 7:24pm UTC](https://community.auth0.com/t/lock-in-popup-mode-audience-and-oidcconformant/8368 "2017-10-03T19:24:20Z")

</div>

It seems there is something wrong in the way I do things. I have the following code: var lock = new Auth0Lock('secret','domain',{ oidcConformant: true, auth: { redirect: false, responseType: 'to…

---

## [AWS Gateway API tutorial, audience is invalid](https://community.auth0.com/t/aws-gateway-api-tutorial-audience-is-invalid/8130)

<div class="topic-metadata">

**Author:** [@iurii](https://community.auth0.com/u/iurii)\
**Replies:** 2\
**Last updated:** [September 11, 2017, 8:35pm UTC](https://community.auth0.com/t/aws-gateway-api-tutorial-audience-is-invalid/8130 "2017-09-11T20:35:15Z")

</div>

I am not sure but there is possibly an error in Gateway API tutorial When I am using parameters for audience from the tutorial which is https://...auth0.com/api/v2/. I was getting an error: { "name": "JsonWebT…

---

## [Pre/Post registration hook: How to retrieve the audience?](https://community.auth0.com/t/pre-post-registration-hook-how-to-retrieve-the-audience/8134)

<div class="topic-metadata">

**Author:** [@roth](https://community.auth0.com/u/roth)\
**Replies:** 2\
**Last updated:** [September 10, 2017, 11:48am UTC](https://community.auth0.com/t/pre-post-registration-hook-how-to-retrieve-the-audience/8134 "2017-09-10T11:48:11Z")

</div>

I’d like to know which audience users are trying to access in order to show them a personalized email verification message. How can I retrieve the audience in a pre/post registration hook? Apparently, adding the info t…

---

## [Lock widget redirect goes wrong when using audience](https://community.auth0.com/t/lock-widget-redirect-goes-wrong-when-using-audience/7262)

<div class="topic-metadata">

**Author:** [@and.nil](https://community.auth0.com/u/and.nil)\
**Replies:** 1\
**Last updated:** [July 6, 2017, 4:06pm UTC](https://community.auth0.com/t/lock-widget-redirect-goes-wrong-when-using-audience/7262 "2017-07-06T16:06:27Z")

</div>

Hi, I have a react native app, with a lock widget config that looks like this var lock = new Auth0Lock({ clientId: config.clientid, domain: config.domain, }); lock.show({ authParams: { scope: "openid e…

---

## [Auth0.js - not returning the correct audience](https://community.auth0.com/t/auth0-js-not-returning-the-correct-audience/6480)

<div class="topic-metadata">

**Author:** [@roje](https://community.auth0.com/u/roje)\
**Replies:** 1\
**Last updated:** [May 5, 2017, 10:58am UTC](https://community.auth0.com/t/auth0-js-not-returning-the-correct-audience/6480 "2017-05-05T10:58:03Z")

</div>

Hi guys. I am trying to create a front-end application that uses the auth0 javascript SDK. This works fine and returns a JWT token as expected. But when I want to call an API with the same token it didnt work since the …

---

## [oidcConformant breaks redirectUrl?](https://community.auth0.com/t/oidcconformant-breaks-redirecturl/6466)

<div class="topic-metadata">

**Author:** [@benzhangniu](https://community.auth0.com/u/benzhangniu)\
**Replies:** 1\
**Last updated:** [May 4, 2017, 5:00pm UTC](https://community.auth0.com/t/oidcconformant-breaks-redirecturl/6466 "2017-05-04T17:00:32Z")

</div>

I’m trying to retrieve a user’s accessToken with the correct audience using the Auth0 Lock. My code is as follows: import Auth0Lock from 'auth0-lock'; new Auth0Lock(clientId, domain, { oidcConformant: true, auth: {…
