RE: Override Open Id Connect to use ScreenName instead of Email

Olaf Kock, modified 1 Year ago. New Member Post: 1 Join Date: 12/14/23 Recent Posts

Hello, 

I would like to user OpenId Connect on my portal DXP 7.4. It doesn't work because my database email is not up to date with provider database email. 

So i would like to connect using screenname but liferay does not enabled it. 

A solution would be to override OIDCUserInfoProcessor.java classe (com.liferay.portal.security.sso.openid.connect.internal.OIDCUserInfoProcessor) In this class, a method called "processUserInfo" check if user exist by get it by email. I would like to modify it and get it by screenname. 

Is there a way to override this method ? 

Thanks !

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

Hi Sébastien,

I think you can use the options what the OSGi framework gives.

Regards,
Zsigmond