Foros de discusión

Login Hook to login user without password

thumbnail
Vitor Manuel Lopes, modificado hace 7 años.

Login Hook to login user without password

New Member Mensajes: 17 Fecha de incorporación: 10/05/13 Mensajes recientes
Hi

I'm trying to implement one hook to login user without password... So the use case is

1. Check if user exists on one external database with an external service provided by our client.
2. If yes, create user on liferay portal without password if user doesn't exist...
3. Login user on portal

My question is, after first step returns success it's possible to login user automatically without verifying user password on liferay?

Best Regards
Vitor Lopes
thumbnail
Milen Dyankov, modificado hace 7 años.

RE: Login Hook to login user without password

Expert Mensajes: 310 Fecha de incorporación: 30/10/12 Mensajes recientes
Here is an example that does that using Apache Shiro as external authentication system. You could adapt the code to use it with any other system / database!
thumbnail
Vitor Manuel Lopes, modificado hace 7 años.

RE: Login Hook to login user without password

New Member Mensajes: 17 Fecha de incorporación: 10/05/13 Mensajes recientes
Thanks Milen...

I will check this example...