<?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>How to authenticate jax-rs service to be access from liferay portlet only?</title>
  <link rel="self" href="https://liferay.dev/ca/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121208010" />
  <subtitle>How to authenticate jax-rs service to be access from liferay portlet only?</subtitle>
  <id>https://liferay.dev/ca/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121208010</id>
  <updated>2026-05-31T19:50:15Z</updated>
  <dc:date>2026-05-31T19:50:15Z</dc:date>
  <entry>
    <title>How to authenticate jax-rs service to be access from liferay portlet only?</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121208009" />
    <author>
      <name>Mahmoud Mahmoud</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121208009</id>
    <updated>2021-10-20T16:50:36Z</updated>
    <published>2021-10-20T10:57:50Z</published>
    <summary type="html">&lt;p&gt;I have build React js portlete that call jax-rs Rest service in the
  same Liferay server &lt;/p&gt;
&lt;p&gt;Now I don't know how call this jax-rs with the best authentication.&lt;/p&gt;
&lt;p&gt;I try to use oAuth2 but it redirect user to login page but the user
  already loged in.&lt;/p&gt;
&lt;p&gt;Also I have this idea to get authToken inside react js and used it to
  call the api but I don't know how how to impelemt this in api. &lt;/p&gt;
&lt;p&gt;Is there Any solution?&lt;/p&gt;</summary>
    <dc:creator>Mahmoud Mahmoud</dc:creator>
    <dc:date>2021-10-20T10:57:50Z</dc:date>
  </entry>
</feed>
