OIDC: userinfo enpoint oidc/oidcProfile does not retun user attribuets

44 views
Skip to first unread message

Udo Einspanier

unread,
Feb 23, 2024, 5:54:14 AM2/23/24
to CAS Community
Hi everyone,

we are using CAS with OIDC. We have custom attributes that are returned also in the id_token, which works fine. However, when getting the response from the userinfo endpoint at /oidc/oidcProfile, there is just an empty filed "attributes".

{
   "sub": "XXX",
   "service": "XXX",
   "auth_time": 1708679458,
   "attributes": {},
   "id": "XXX",
   "client_id": "XXX"
}

What do we have to do to get the attributes from the id_token also in the userinfo endpoint?
Here our OIDC configuration:

oidc:
core:
issuer: "https://{{ CAS_SERVER_NAME }}/cas/oidc"
claims-map:
cn: name
discovery:
grant-types-supported: authorization_code,password,client_credentials,refresh_token
scopes: openid,profile,email,address,phone,eoportal
claims: cn,uid,sub,name,preferred_username,family_name,given_name,middle_name,given_name,profile,picture,nickname,website,zoneinfo,locale,updated_at,birthdate,email,email_verified,phone_number,phone_number_verified,address,gender,role,policy_accepted,has_nrt_license,has_morethan1hr_license,customer_organisation,mail
user-defined-scopes:
eoportal: role,uid
jwks:
core:
jwks-type: RSA
file-system:
jwks-file: file:///etc/cas/oidcJwks/keystore.jwks


Thanks,
Udo

Reply all
Reply to author
Forward
0 new messages