tags:

views:

422

answers:

6

Hi,

I want to use authentication web services that is exposed by my legacy client. But I cannot copy those user information in to liferay database. Can any one help me to write a custom authentication service OR a hook/plugin to reuse my own implementation for authentication?

Regards Vishal G Pillai

+2  A: 

Hi Vishal,

I want to use authentication web services that is exposed by my legacy client.

You need to implement Liferay's com.liferay.portal.security.auth.Authenticator class to use your own custom authenticator that would call your web services. This can be plugged into Liferay by adding the folliowing to portal-ext.properties: auth.pipeline.pre=[your classpath].

But I cannot copy those user information in to liferay database.

I believe that if you don't want to store your user data in Liferay you can also use auth.pipeline.enable.liferay.check=false in the portal-ext.properties file. Mind you, I'm trying to do the same right now and I'm not having much luck.

Good luck!

Ray

rayseaward
A: 

Hi Ray,

But how to have our own login page instead of the login page provided by liferay..Reasin is that we may have additional credential for login.

Thanks for your reply. I will try the same..Please reply me when you see success.

Regards Vishal G

A: 

Hi Ray,

Thanks for your reply. Its working now..

Regards Vishal G

If Ray's answer solved your problem, please consider 'accepting' it as answer to your problem. Also you might want to vote it up
Olaf
Hi Olaf,I would like to vote it, but dont know how to do that...Can you please help me so that I can give my voteRegardsVishal G
A: 

Hi Ray, Olay,

Thanks for your help..

I have another question related to this..Even when I set auth.pipeline.enable.liferay.check=false, liferay is doing addional checks. If user's email id is not configured in the system, then it throws out an exception saying that Authentication failed.. If I try that with a user whose email id is already configured, then it works well. Do you know how to stop liferay from checking the user in its db?

Regards Vishal G

A: 

The information Ray you gave is correct, as a hint here: http://www.liferay.com/community/wiki/-/wiki/Main/Developing+a+Custom+Authentication+System is a good step by step tutorial which I do use for a similar approach.

regards Johannes

john84
A: 

But the user's email id need to be configured in the Liferay database for the LR authentication to work. But i dont want the users be configured in LR database at all.

Please let me know if you have a solution for this problem.

Dan