Foros de discusión

How to create a post login hook in liferay 6.1?

thumbnail
Subhasis Roy, modificado hace 11 años.

How to create a post login hook in liferay 6.1?

Expert Mensajes: 275 Fecha de incorporación: 20/01/12 Mensajes recientes
Hi,

In liferay 6.0 we used to define hook inside liferay-hook.xml using <event> tag.

But I found that its not working for liferay 6.1.

liferay 6.0 code:

<hook>
<event>
<event-class>com.test.sample.MyAction</event-class>
<event-type>login.events.post</event-type>
</event>
</hook>



Can anyone please tell me how and where to define a post login hook(login.events.post) in liferay 6.1 version.
thumbnail
Jitendra Rajput, modificado hace 11 años.

RE: How to create a post login hook in liferay 6.1?

Liferay Master Mensajes: 875 Fecha de incorporación: 7/01/11 Mensajes recientes
In 6.1 you can do this with by over riding portal.properties ..
<portal-properties>portal.properties</portal-properties> 


Specify above property in your liferay-hook.xml
and place portal.properties inside your hook and place property related to your event .

login.events.post=com.test.sample.MyAction
thumbnail
Subhasis Roy, modificado hace 11 años.

RE: How to create a post login hook in liferay 6.1?

Expert Mensajes: 275 Fecha de incorporación: 20/01/12 Mensajes recientes
thanks.

But this is not working when I have integrated with CAS.

I logged in using CAS and expects my post login hook to interfere after i logged in, but hook is not working int his case.

For simple liferay login(withou CAS) , hook is working.

Can any one have any idea about this?
Petr Vašek, modificado hace 11 años.

RE: How to create a post login hook in liferay 6.1?

Junior Member Mensajes: 68 Fecha de incorporación: 26/06/12 Mensajes recientes
Hi Roy, You can use EXT plugin, i think it is very easy way to solution.

http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/developing-an-ext-plugin

Petr
thumbnail
Miguel Ángel Júlvez, modificado hace 11 años.

RE: How to create a post login hook in liferay 6.1?

Junior Member Mensajes: 63 Fecha de incorporación: 29/03/11 Mensajes recientes
Hi Subhass,

did you get a solution?

Regards

Subhasis Roy:
thanks.

But this is not working when I have integrated with CAS.

I logged in using CAS and expects my post login hook to interfere after i logged in, but hook is not working int his case.

For simple liferay login(withou CAS) , hook is working.

Can any one have any idea about this?
thumbnail
Subhasis Roy, modificado hace 11 años.

RE: How to create a post login hook in liferay 6.1?

Expert Mensajes: 275 Fecha de incorporación: 20/01/12 Mensajes recientes
yes. it worked.
Bryan Kim, modificado hace 11 años.

RE: How to create a post login hook in liferay 6.1?

New Member Mensajes: 3 Fecha de incorporación: 17/01/13 Mensajes recientes
What was the solution for this?
Hu Jun, modificado hace 10 años.

RE: How to create a post login hook in liferay 6.1?

New Member Mensaje: 1 Fecha de incorporación: 19/03/14 Mensajes recientes
can you tell me how to solution for it? thank you very much!
thumbnail
Subhasis Roy, modificado hace 10 años.

RE: How to create a post login hook in liferay 6.1?

Expert Mensajes: 275 Fecha de incorporación: 20/01/12 Mensajes recientes
For JSP hook we can follow as mentioned below.

Refer to attached sample JSP hooks