Message Boards
friendly url - problem with p_auth
friendly url - problem with p_auth
New Member Posts: 2 Join Date: 3/16/20 Recent PostsHello
I want to generate URLs leading to portlet's action mapping methods.
I created mapping and routes (it works) and created URL with following code
PortletURL actionUrl = PortletURLFactoryUtil.create( request, portlet.getPortletId(), layout, PortletRequest.ACTION_PHASE); actionUrl.setWindowState(LiferayWindowState.NORMAL); actionUrl.setPortletMode(LiferayPortletMode.VIEW); actionUrl.setParameter("action", operationType.getDescription()); actionUrl.setParameter("p_p_lifecycle", "1"); return actionUrl.toString();
URL is sent using SMTP protocol between defined emailaddresses.
URL is created correctly and it works in case when I use it in the
same session (without logging out user).
However after logging out, when i supply this link to browser again, I am asked to pass my credentials and afterwards instead of requested page, the starting page appears.
The question is if I can bypass this behaviour in quite easy in quick way or it is more time-demanding task?
RE: friendly url - problem with p_auth
Liferay Master Posts: 591 Join Date: 8/8/14 Recent PostsHi ,
Check whether the layout you are passing to PortletURLFactoryUtil is a private page , if its private then you may need to make it public page for using it without user logged in..