Morning! I have come across
https://github.com/ory/network/issues/206, which oddly seems to be the opposite to the issue I am having, though I cannot find a ticket for this.
We are using branding 2.0 preview with default URLS.
I amended the scope for our SSO connection and forced all users to re-consent.
• On the initial consent check we are no longer receiving the audience in the access token as expected (it is in both the OAuth2 client and the client side SSO config).
◦ If the user clicks to
remember the decision on the consent window THEN logs out and back in - the audience value (and the users name fields) are correctly populated on future log ins.
◦ If the user does not click remember they will never get the audience value on access tokens.
This seems to be an issue with the consent window blocking/removing parts of the access token.