Foros de discusión

User authentication when user not in Liferay Scema

Priyabrata Palit, modificado hace 9 años.

User authentication when user not in Liferay Scema

New Member Mensajes: 8 Fecha de incorporación: 7/05/14 Mensajes recientes
I have users which are residing in a different schema (NOT Liferay).
I want to authenticate these users using Liferay.
I will maintain the admin and the "business users" on lIferay itself.

I want a hybrid module where the select set of users are authenticated using Liferay OOTB and the remaining through web service, but session information and SSO features are still available.

Can this be done in Liferay 6.2 or does the users (at least the basic info) need to be present with Liferay to manage them?
thumbnail
Bruno Farache, modificado hace 9 años.

RE: User authentication when user not in Liferay Scema

Liferay Master Mensajes: 603 Fecha de incorporación: 14/05/07 Mensajes recientes
It's not possible out of the box. Our web services use Basic Authentication to authenticate against the portal.

You would have to implement an AuthVerifier/AutoLogin in order to authenticate with your own mechanism and add it to "auth.verifier.pipeline" in portal.properties.
Looking at BasicAuthHeaderAutoLogin would be a good starting point.
thumbnail
Bruno Farache, modificado hace 9 años.

RE: User authentication when user not in Liferay Scema

Liferay Master Mensajes: 603 Fecha de incorporación: 14/05/07 Mensajes recientes
I took a deeper look at BasicAuthHeaderAutoLogin and it returns an array containing userId and password if authentication is successful, which are fetched from Liferay's database and used for the actual authentication in the pipeline.

So it seems you must have the user data inside Liferay's User table, I don't know if there's some other way to achieve what you want, maybe by implementing your own permission checker, not sure.
Priyabrata Palit, modificado hace 9 años.

RE: User authentication when user not in Liferay Scema

New Member Mensajes: 8 Fecha de incorporación: 7/05/14 Mensajes recientes
So the solution is to keep all my users in Liferay Schema?
I have got about 300 million of them!!

even if i do that , can i still maintain and pass sessions to other web pages.. I have got some users who could be logged into some other server (not liferay) and will be redirected to my page hosted on Liferay. I need to give them a seamless experience of not needing to logging in again. Does this user also need to be on liferay? I do not need to manage these users.
thumbnail
Krzysztof Golebiowski, modificado hace 9 años.

RE: User authentication when user not in Liferay Scema

Liferay Master Mensajes: 549 Fecha de incorporación: 25/06/11 Mensajes recientes
Loooool, 300 milion? Isn't that 10% of the whole internet? I suppose you need custom solution clustered on 1000 servers emoticon
Priyabrata Palit, modificado hace 9 años.

RE: User authentication when user not in Liferay Scema

New Member Mensajes: 8 Fecha de incorporación: 7/05/14 Mensajes recientes
Sorry .. thats 3 million emoticonemoticon