<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>friendly url - problem with p_auth</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120489631" />
  <subtitle>friendly url - problem with p_auth</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120489631</id>
  <updated>2026-04-07T02:28:17Z</updated>
  <dc:date>2026-04-07T02:28:17Z</dc:date>
  <entry>
    <title>RE: friendly url - problem with p_auth</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120491261" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120491261</id>
    <updated>2020-12-06T21:02:28Z</updated>
    <published>2020-12-06T21:02:28Z</published>
    <summary type="html">&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;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..&lt;/p&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2020-12-06T21:02:28Z</dc:date>
  </entry>
  <entry>
    <title>friendly url - problem with p_auth</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120489630" />
    <author>
      <name>Bartosz Socha</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120489630</id>
    <updated>2020-12-04T17:31:01Z</updated>
    <published>2020-12-04T16:57:57Z</published>
    <summary type="html">&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I want to generate URLs leading to portlet's action mapping methods.&lt;/p&gt;
&lt;p&gt;I created mapping and routes (it works) and created URL with
  following code&lt;/p&gt;
&lt;pre&gt;PortletURL actionUrl =
    PortletURLFactoryUtil.create(
        request, portlet.getPortletId(), layout, PortletRequest.ACTION_PHASE);
actionUrl.setWindowState(LiferayWindowState.NORMAL);
actionUrl.setPortletMode(LiferayPortletMode.VIEW);
actionUrl.setParameter(&amp;quot;action&amp;quot;, operationType.getDescription());
actionUrl.setParameter(&amp;quot;p_p_lifecycle&amp;quot;, &amp;quot;1&amp;quot;);
return actionUrl.toString();&lt;/pre&gt;
&lt;p&gt;URL is sent using SMTP protocol between defined emailaddresses.&lt;/p&gt;
&lt;p&gt;URL is created correctly and it works in case when I use it in the
  same session (without logging out user).&lt;br /&gt; &lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;The question is if I can bypass this behaviour in quite easy in quick
  way or it is more time-demanding task?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Bartosz Socha</dc:creator>
    <dc:date>2020-12-04T16:57:57Z</dc:date>
  </entry>
</feed>
