Tim Möhlmann 7816644964
fix(oidc): define audience inside auth request instead of token creation (#7610)
fix(oidc): define audience inside auth request instead off token creation

When using the v1 OIDC Code flow, tokens would not carry the correct audience when returned as JWT. This applies to access tokens as JWT and ID tokens.
Introspection would still show the correct audience.
This happened because project audience was appended at token creation time. This stored the appended audience, used later in introspection or token refresh. However, the OIDC library still only had a view of the original auth request with the original audience.
When signing JWTs it would use this outdated information.

This change moves audience modifications to the auth request creation. This is was already the way it was done for v2 login and now v1 follows the same method.

Co-authored-by: Livio Spring <livio.a@gmail.com>

(cherry picked from commit 9d5cd12cd4daffafb1c502db0bea603a2403e12d)
2024-03-25 07:24:21 +01:00
..
2023-07-10 08:07:10 +00:00
2024-02-28 10:55:54 +02:00
2024-01-17 10:16:48 +00:00
2024-01-17 10:16:48 +00:00
2024-01-17 10:16:48 +00:00
2024-02-28 10:21:11 +00:00
2023-07-06 08:38:13 +02:00
2022-11-30 17:01:17 +01:00
2022-04-26 23:01:45 +00:00