# Validated Audiences do not match Client Token

**URL:** <https://forum.keycloak.org/t/validated-audiences-do-not-match-client-token/2674>\
**Category:** Securing applications\
**Tags:** authentication, oidc\
**Created:** [May 12, 2020, 3:45pm UTC](https://forum.keycloak.org/t/validated-audiences-do-not-match-client-token/2674 "2020-05-12T15:45:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![regilero](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/regilero/32/5411_2.png) [@regilero](https://forum.keycloak.org/u/regilero)\
**Post date:** [June 9, 2022, 8:25am UTC](https://forum.keycloak.org/t/validated-audiences-do-not-match-client-token/2674/2 "2022-06-09T08:25:02Z")

</div>

The audience management for access tokens has changed.

You can check this other discussion:

> [@Audience validation failed with Keycloak 8.x in Owin.Security.Keycloak .Net library](http://forum.keycloak.org/t/audience-validation-failed-with-keycloak-8-x-in-owin-security-keycloak-net-library/1308/2):
>
> The newer versions of Keycloak server has changed how the audience claim (“aud”) is set in the access token. The library ([Owin.Security.Keycloak](https://github.com/mattmorg55/Owin.Security.Keycloak)) assumes that the Keycloak Client ID is in the “aud” claim, which no longer is the case by default. One way to fix it is in Keycloak admin UI, add a mapper in to the Keycloak Client that’s being used. Name: Audience Mapper type: Audience Included Client Audience: [Client ID] Also, make sure the .NET library is configured with option DisableAllRefre…

I also made a bug report with some infos on that: [Breaking change in 'aud' audience content for access tokens · Issue #12415 · keycloak/keycloak · GitHub](https://github.com/keycloak/keycloak/issues/12415)

---

_[View the full topic](https://forum.keycloak.org/t/validated-audiences-do-not-match-client-token/2674)._
