Add custom requested claims to user info response #29108
Replies: 2 comments 1 reply
-
By "claims [that] are not previously defined [...] claims that I set to users", do you mean Unmanaged Attributes? If so, then try setting You might also want to consider creating an attribute group if you haven't already. |
Beta Was this translation helpful? Give feedback.
-
Thank you a lot, I tried both solutions but the result is the same. How can I add new claims into "claims_supported" in the OIDC Provider metadata? Thanks. I saw that in the OIDC Core metadata of the Provider (http://localhost:8080/realms/master/.well-known/openid-configuration) there are default claims which a client can potentially ask. How can I add a new claim to this collection? Thanks. Best regards. Luca Montano |
Beta Was this translation helpful? Give feedback.
-
Description
Good morning,
I'm trying to return specific claims which client requested but that claims are not previously defined: one of them is the fiscal number. I tried to set a mapper in the client scope view of my client, but when I send a request object which contains the claim "claims" with the claims that the resource server must return, the final response doesn't have "unknown" requested claims. I tried to define a user with these kind of claim, but the result is the same. How can I obtain all the claims that I set to users and I requested with the request object at the beginning of the OIDC authentication flow? Thanks a lot.
Luca Montano
PS: the version I'm using is the 24.0.2 and is the first I tried.
Beta Was this translation helpful? Give feedback.
All reactions