<?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>Invoking Liferay JSON web service remotely.</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119841902" />
  <subtitle>Invoking Liferay JSON web service remotely.</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119841902</id>
  <updated>2026-04-05T23:48:17Z</updated>
  <dc:date>2026-04-05T23:48:17Z</dc:date>
  <entry>
    <title>RE: Invoking Liferay JSON web service remotely.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119869194" />
    <author>
      <name>Vishnu S Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119869194</id>
    <updated>2020-08-31T08:13:49Z</updated>
    <published>2020-08-31T08:13:49Z</published>
    <summary type="html">Thanks, David. Please correct me if I&amp;#39;m doing it wrong. &lt;br /&gt;&lt;br /&gt;To enable the Token-based SSO, I followed the Liferay &lt;a href="https://help.liferay.com/hc/en-us/articles/360018175391-Token-based-Single-Sign-On-Authentication"&gt;docs &lt;/a&gt;and configured it inside the s&lt;em&gt;ystem-settings -&amp;gt; foundation -&amp;gt; token-based SSO&lt;/em&gt;. I configured it to use the request header with the name TEST_TOKEN.&lt;br /&gt;&lt;br /&gt;To make the guest API, I configured the service and method under SYNC_DEFAULT in the service access policies.&lt;br /&gt;&lt;br /&gt;Now, If I call the JSON web service from the postman, using the TEST_TOKEN header, it is supposed the reach at the AutoLogin pipeline class right. But It&amp;#39;s not working instead it&amp;#39;s calling the API without any security.  Is this the correct way to make the guest API? </summary>
    <dc:creator>Vishnu S Kumar</dc:creator>
    <dc:date>2020-08-31T08:13:49Z</dc:date>
  </entry>
  <entry>
    <title>RE: Invoking Liferay JSON web service remotely.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119842251" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119842251</id>
    <updated>2020-08-26T17:58:25Z</updated>
    <published>2020-08-26T17:58:25Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Vishnu S Kumar:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;I need to validate it against an external User store.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Just so you know, all users in Liferay must be real Liferay users. You can&amp;#39;t auth a user in a 3rd party system and not have them exist as a Liferay user. So first thing you need to do is figure out how to handle user import into Liferay.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For authentication, take a look at the Token Based Authentication support already part of Liferay. It can use a cookie or a header for authentication purposes, but not a param. Params are not normally part of an incoming request because those are typically tied to the method being invoked, so these are two separate concerns.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You could, of course, completely fake it. Make the API a guest API so no authentication to invoke at all. Then your token can be part of the request because internally you&amp;#39;d need to complete your external auth lookup. From Liferay&amp;#39;s perspective though, all of this would be guest access so no way to audit or anything using typical Liferay mechanisms.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2020-08-26T17:58:25Z</dc:date>
  </entry>
  <entry>
    <title>Invoking Liferay JSON web service remotely.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119841901" />
    <author>
      <name>Vishnu S Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119841901</id>
    <updated>2020-08-26T16:13:14Z</updated>
    <published>2020-08-26T16:13:14Z</published>
    <summary type="html">The service builder created a simple remote and local services.  I want to invoke the remote service from the postman and customize the authentication process, for ex: using an auth pipeline. How to do that?  When invoking the remote service,  I need to pass-in an auth token and  I need to validate it against an external User store.</summary>
    <dc:creator>Vishnu S Kumar</dc:creator>
    <dc:date>2020-08-26T16:13:14Z</dc:date>
  </entry>
</feed>
