Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Kumar K
Invalid authentication token error
June 26, 2013 3:52 AM
Answer

Kumar K

Rank: New Member

Posts: 19

Join Date: January 25, 2013

Recent Posts

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?
Bart Simpson
RE: Invalid authentication token error
June 26, 2013 4:10 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 524

Join Date: August 29, 2011

Recent Posts

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
RE: Invalid authentication token error
June 26, 2013 4:23 AM
Answer

Kumar K

Rank: New Member

Posts: 19

Join Date: January 25, 2013

Recent Posts

It is not cluster environment. We are not sure about the scenario as we found this in log files in production environment.
Kumar K
RE: Invalid authentication token error
June 27, 2013 12:09 AM
Answer

Kumar K

Rank: New Member

Posts: 19

Join Date: January 25, 2013

Recent Posts

any help?
Jose Jimenez
RE: Invalid authentication token error
June 27, 2013 12:50 AM
Answer

Jose Jimenez

LIFERAY STAFF

Rank: Regular Member

Posts: 151

Join Date: August 22, 2012

Recent Posts

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
RE: Invalid authentication token error
June 27, 2013 1:49 AM
Answer

Kumar K

Rank: New Member

Posts: 19

Join Date: January 25, 2013

Recent Posts

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
RE: Invalid authentication token error
July 1, 2013 2:04 AM
Answer

Kumar K

Rank: New Member

Posts: 19

Join Date: January 25, 2013

Recent Posts

please help.