Fórum

Invalid authentication token error

Kumar K, modificado 10 Anos atrás.

Invalid authentication token error

New Member Postagens: 19 Data de Entrada: 25/01/13 Postagens Recentes
Hi,

Sometimes we are getting the "Invalid authentication token" errors. We are seeing this issue only in production. Below is the exception found in log files.
Can you please tell me in which case this kind of error occurs and how to fix this?

2013-06-26 00:17:54,367 [http-80-35] INFO com.liferay.portal.util.PortalImpl (PortalImpl.java:3736) - Current URL /en/web/elmportal/news-highlights?p_auth=DO5OH4oy&p_p_id=newsuser_WAR_newsuserportlet_INSTANCE_C8Pj&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&p_p_col_id=column-2&p_p_col_count=1&action=previousOrNextinDetail&value=next generates exception: Invalid authentication token
2013-06-26 00:17:54,367 [http-80-35] INFO com.liferay.portal.util.PortalImpl (PortalImpl.java:3751) - com.liferay.portal.security.auth.PrincipalException: Invalid authentication token
com.liferay.portal.security.auth.PrincipalException: Invalid authentication token
at com.liferay.portal.security.auth.SessionAuthToken.check(SessionAuthToken.java:67)
at com.liferay.portal.security.auth.AuthTokenWrapper.check(AuthTokenWrapper.java:32)
at com.liferay.portal.security.auth.AuthTokenUtil.check(AuthTokenUtil.java:29)
at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:751)
at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:571)
at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:229)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)

Please help?
thumbnail
Bart Simpson, modificado 10 Anos atrás.

RE: Invalid authentication token error

Liferay Master Postagens: 522 Data de Entrada: 29/08/11 Postagens Recentes
Is the environment clustered? Also it seems that the p_auth is expired looking at the error. Does it occur when timeout occurs?
Kumar K, modificado 10 Anos atrás.

RE: Invalid authentication token error

New Member Postagens: 19 Data de Entrada: 25/01/13 Postagens Recentes
It is not cluster environment. We are not sure about the scenario as we found this in log files in production environment.
Kumar K, modificado 10 Anos atrás.

RE: Invalid authentication token error

New Member Postagens: 19 Data de Entrada: 25/01/13 Postagens Recentes
any help?
thumbnail
Jose Jiménez, modificado 10 Anos atrás.

RE: Invalid authentication token error

Regular Member Postagens: 176 Data de Entrada: 23/08/12 Postagens Recentes
Hi Kumar,

The authentication token is provided by the portal in order to make possible to add a portlet dynamically to a page. In your case, expired tokens are being added to URL, this could be willfully or not (someone/search-engine request for an old URL).

For more details you can take a look into this chapter of the User Guide.

I hope you find helpful this info.

Kind Regards,
Jose
Kumar K, modificado 10 Anos atrás.

RE: Invalid authentication token error

New Member Postagens: 19 Data de Entrada: 25/01/13 Postagens Recentes
Hi Jose,

Thank you for your response.
In our application, there is no provision for user to add portlets dynamically. but we are using LIFERAY_SHARED variable to pass values from one portlets to another portlets.
Do you think this causes any issue?
Kumar K, modificado 10 Anos atrás.

RE: Invalid authentication token error

New Member Postagens: 19 Data de Entrada: 25/01/13 Postagens Recentes
please help.
manish jaiswal, modificado 5 Anos atrás.

RE: Invalid authentication token error

New Member Mensagem: 1 Data de Entrada: 14/03/19 Postagens Recentes
Hi Kumar  ,

we are facing a similar scenario, can you please provide some pointers.



 Thanks
Mani