friendly url - problem with p_authfriendly url - problem with p_authhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1204896312024-03-29T02:22:36Z2024-03-29T02:22:36ZRE: friendly url - problem with p_authMohammed Yasinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1204912612020-12-06T21:02:28Z2020-12-06T21:02:28Z<p>Hi ,</p>
<p>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..</p>Mohammed Yasin2020-12-06T21:02:28Zfriendly url - problem with p_authBartosz Sochahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1204896302020-12-04T17:31:01Z2020-12-04T16:57:57Z<p>Hello</p>
<p>I want to generate URLs leading to portlet's action mapping methods.</p>
<p>I created mapping and routes (it works) and created URL with
following code</p>
<pre>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();</pre>
<p>URL is sent using SMTP protocol between defined emailaddresses.</p>
<p>URL is created correctly and it works in case when I use it in the
same session (without logging out user).<br /> </p>
<p>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.</p>
<p>The question is if I can bypass this behaviour in quite easy in quick
way or it is more