rough-action-76442
10/15/2024, 4:55 AMbrief-egg-61061
10/15/2024, 4:55 AMbrief-egg-61061
10/15/2024, 4:55 AMaud
) field of the ID token. When handling the webhook in your endpoint, you can modify the claims of the issued tokens by returning a 200
HTTP status code with a JSON response body. In the response body, you can specify the aud
field under id_token
with the desired audience values. Here is an example of how you can structure your response: json { "session": { "id_token": { "aud": ["audience1", "audience2", "audience3"] } } }
Please note that the audience values you add should be valid and allowed by your OAuth 2.0 client. The audience values are validated against the allowed audiences defined in the OAuth 2.0 client. For more details, please refer to the [Ory documentation on responding to the webhook](https://www.ory.sh/docs/hydra/guides/claims-at-refresh#responding-to-the-webhook).rough-action-76442
10/15/2024, 4:58 AMrough-action-76442
10/15/2024, 4:59 AMbrief-egg-61061
10/15/2024, 4:59 AMbrief-egg-61061
10/15/2024, 4:59 AM