Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Call or Invoke OpenId Authentication from Custom Login Portlet
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
Hi Anish,
Have you checked already how the portal is doing that? https://github.com/liferay/liferay-portal/blob/master/modules/apps/login/login-authentication-openid-connect-web/src/main/java/com/liferay/login/authentication/openid/connect/web/internal/portlet/action/OpenIdConnectLoginRequestMVCActionCommand.java#L113-L207
Regards,
Powered by Liferay™