Multiple audiences in the ID token 'aud' claim
Currently ID tokens are generated for only one audience, that is the token client ID. Sometimes a client might want to be able to share its tokens with another client. We should allow the interface to do this, and fill the aud IDToken claim accordingly.
- add an audience field in the Client LDAP schemas.
- add a multiple select field on the client edition/addition form
- generate ID tokens with the
aud
claim filled with the client audiences - fill the
aud
claims in the introspection endpoint too.
Edited by Éloi Rivard