Unable to map custom attributes when using OAuth2.0 SSO

Olaf Kock, modified 1 Year ago. New Member Posts: 2 Join Date: 5/27/24 Recent Posts

Hi,

We use OAuth2 client (Keycloak) for SSO in Liferay, and we would like to map some custom attributes from Keycloak users to the Liferay user equivalent. We are using the Json mappers but have been unable, to coreectly map them, beacuse the in the portal code it appers that there is no function behind the mapping.

We are using Portal 7.4. 

thumbnail
Zsigmond Rab, modified 1 Year ago. Liferay Master Posts: 764 Join Date: 1/5/10 Recent Posts

Hi Dániel,

Could you please share specific steps that you take to make it work? I mean the exact config you use and the mapping you try to apply. Is there any exception in the log when a user data transfer should happen?

Regards,
Zsigmond

Olaf Kock, modified 1 Year ago. New Member Posts: 2 Join Date: 5/27/24 Recent Posts

Hi Zsigmond,

 

We have set up a new custom field (text type, MobileNumber), for the users of the portal on the control panel, then tried to map it at OAuth Client Administration -> OpenId Connect User Information Mapper JSON like this:

I could not seem to find any exception in the log.