I'm using the OIDC module (v6) and encountering an issue with an OIDC client that expects user claims to be included in the ID token itself.
Current behavior:
When scopes openid, email, and profile are requested, the ID token only contains standard claims: sub, iss, aud, exp, iat, at_hash, sid
User claims (email, given_name, family_name, name) are only available via the UserInfo endpoint.
Question:
Is there a way to configure the OIDC module to include scope-based claims in the ID token, or are they only available via UserInfo? I've tried creating a hook file at modules/oidc/hooks/id_token.claims.php but it doesn't seem to be called. Any guidance would be appreciated. This is the first OIDC client I'm setting up that requires claims in the ID token rather than fetching them from UserInfo.