Call or Invoke OpenId Authentication from Custom Login Portlet

Jamie Sammons, modified 2 Years ago. New Member Posts: 18 Join Date: 4/11/23 Recent Posts

Hi All,

I was able to customize the login page by creating "Liferay Module Project Fragment" project and overriding login.jsp file under the OSGi bundle "com.liferay.login.web-6.0.37.jar" file. Also I was able to call my own external service for primary authentication by creating a MVCActionCommand portlet with "mvc.command.name=/login/login". Upto this part I have done and its working.

Next I have to call OpenId authentication with some state parameter from my MVCActionCommand portlet, this is the secondary authentication which is a requirement. I have enabled OpendID and Configured Identity provider in the Admin -> Control Panel -> System Settings.

How we can call or initiate OpenId authentication pipeline from the MVCActionCommand portlet's processRequest method with my own state parameters which should be returned by the IDP after successful authentication?

Please suggest a solution