Foren

Login Hook to login user without password

thumbnail
Vitor Manuel Lopes, geändert vor 7 Jahren.

Login Hook to login user without password

New Member Beiträge: 17 Beitrittsdatum: 10.05.13 Neueste Beiträge
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, geändert vor 7 Jahren.

RE: Login Hook to login user without password

Expert Beiträge: 310 Beitrittsdatum: 30.10.12 Neueste Beiträge
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, geändert vor 7 Jahren.

RE: Login Hook to login user without password

New Member Beiträge: 17 Beitrittsdatum: 10.05.13 Neueste Beiträge
Thanks Milen...

I will check this example...