<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Create a custom javascript login page for Isolated mode deployed application in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/create-a-custom-javascript-login-page-for-isolated-mode-deployed/m-p/315129#M2130</link>
    <description>&lt;P&gt;How can I create a custom Javascript login page, that will allow to connect the user to the Nuxeo platform ?
I can't find any appropriate method in the API playground.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2015 15:52:36 GMT</pubDate>
    <dc:creator>Erwan_</dc:creator>
    <dc:date>2015-09-10T15:52:36Z</dc:date>
    <item>
      <title>Create a custom javascript login page for Isolated mode deployed application</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/create-a-custom-javascript-login-page-for-isolated-mode-deployed/m-p/315129#M2130</link>
      <description>&lt;P&gt;How can I create a custom Javascript login page, that will allow to connect the user to the Nuxeo platform ?
I can't find any appropriate method in the API playground.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2015 15:52:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/create-a-custom-javascript-login-page-for-isolated-mode-deployed/m-p/315129#M2130</guid>
      <dc:creator>Erwan_</dc:creator>
      <dc:date>2015-09-10T15:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create a custom javascript login page for Isolated mode deployed application</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/create-a-custom-javascript-login-page-for-isolated-mode-deployed/m-p/315130#M2131</link>
      <description>&lt;P&gt;Do you mean that you have a javascript application and you would like it to handle an authentication toke, to avoid having to authenticate each requests with username / password ? what do you mean by "isolated mode deployed"?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 09:55:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/create-a-custom-javascript-login-page-for-isolated-mode-deployed/m-p/315130#M2131</guid>
      <dc:creator>Alain_ESCAFFRE</dc:creator>
      <dc:date>2015-09-24T09:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create a custom javascript login page for Isolated mode deployed application</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/create-a-custom-javascript-login-page-for-isolated-mode-deployed/m-p/315131#M2132</link>
      <description>&lt;P&gt;I was refering to “isolated mode deployed” because of the deployment method proposed in the deployment section of the following page&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 15:22:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/create-a-custom-javascript-login-page-for-isolated-mode-deployed/m-p/315131#M2132</guid>
      <dc:creator>Erwan_</dc:creator>
      <dc:date>2015-10-06T15:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create a custom javascript login page for Isolated mode deployed application</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/create-a-custom-javascript-login-page-for-isolated-mode-deployed/m-p/315132#M2133</link>
      <description>&lt;P&gt;From what I can see, there is no &lt;A href="https://doc.nuxeo.com/nxdoc/rest-api-endpoints/"&gt;authentication endpoint&lt;/A&gt; in the REST API, but the calls use basic authentication according to &lt;A href="https://doc.nuxeo.com/nxdoc/request-authentication/" target="test_blank"&gt;https://doc.nuxeo.com/nxdoc/request-authentication/&lt;/A&gt;, so you would pass username and password in each request.
I would also prefer to get a token instead of basic authentication for each API call, however, the latter should work as well for the moment.&lt;/P&gt;
&lt;P&gt;You can create/test your login by making a dummy request to&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;GET &lt;A href="http://192.168.99.100:32769/nuxeo/api/v1/user/Administrator" target="test_blank"&gt;http://192.168.99.100:32769/nuxeo/api/v1/user/Administrator&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;for example, which will then either return a &lt;CODE&gt;401&lt;/CODE&gt; or a &lt;CODE&gt;200&lt;/CODE&gt; status, if you pass the correct username and password.&lt;/P&gt;
&lt;P&gt;Looking at the API explorer in my Nuxeo instance, I see that there is a token endpoint, not sure yet how to use it:
&lt;CODE&gt;GET &lt;A href="http://192.168.99.100:32769/nuxeo/api/v1/token" target="test_blank"&gt;http://192.168.99.100:32769/nuxeo/api/v1/token&lt;/A&gt;&lt;/CODE&gt;
since you need to pass device id, application, permissions to it. (The Nuxeo mobile app seems to be using this approach). But this might be an alternative way.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="type an image title"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1869iAA720221D5659280/image-size/large?v=v2&amp;amp;px=999" role="button" title="type an image title" alt="type an image title" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="type an image title"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1872iD8B17E3E6A7BB73A/image-size/large?v=v2&amp;amp;px=999" role="button" title="type an image title" alt="type an image title" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:38:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/create-a-custom-javascript-login-page-for-isolated-mode-deployed/m-p/315132#M2133</guid>
      <dc:creator>mathias_lin</dc:creator>
      <dc:date>2017-01-25T10:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create a custom javascript login page for Isolated mode deployed application</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/create-a-custom-javascript-login-page-for-isolated-mode-deployed/m-p/315133#M2134</link>
      <description>&lt;P&gt;A token can be retrieved here&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 10:55:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/create-a-custom-javascript-login-page-for-isolated-mode-deployed/m-p/315133#M2134</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2017-01-25T10:55:49Z</dc:date>
    </item>
  </channel>
</rss>

