we are creating a flow in Azure AD B2C by using custom policies. By default,
access_token contains an
audience claim (named
aud) which has the value set to the application ID.
We would like to change that value by attaching an additional string to it, ie.
In order to achieve that, we would need to read the
aud claim value in the custom policy and then set the
aud claim to a new value.
We haven't been successful with neither of those two things, so the questions are:
- how to set a new value to the
aud claim for the access token?
- how to read the value of the
aud claim from the access token?