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
Custom Authentication
Hi All,
For my current project I need to validate user in the external system with a custom login portlet. The external system validate the user using rest API call. Once the user is validated it returns authentication(some string) token and the user should be able to login Liferay without using liferay`s deafult authentication.
I want to handle this situation in such way that it should not distrub liferay`s default sign in portlet authentication flow. Because in my same Portal I have different applications which are using default sign in portlet.
My Environment : Liferay 7 DXP, Tomcat
Thanks
Hamidul Islam
"I want to log them in externally and it should not affect the normal Liferay process, but I also want the normal Liferay process"?
Liferay has support via the authentication pipeline to support creating an external login. Normally we use this path to integrate with external authentication mechanisms. You don't need a separate login portlet using the pipeline because all roads get the user into Liferay. Since all users must be real Liferay users anyway, this authentication pipeline allows for easy integration w/ the external systems.
Now if you are asking to use the external auth mechanism but not have the folks be Liferay users, well that is just not possible. All authenticated users must be Liferay users.