<?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 Re: How can I use token auth &amp;quot;à la Nuxeo Drive&amp;quot; for using the REST API ? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-use-token-auth-quot-%C3%A0-la-nuxeo-drive-quot-for-using/m-p/314577#M1578</link>
    <description>&lt;P&gt;If fact everything works fine, I only needed the right URL for authentification :&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;/nuxeo/authentication/token?applicationName=TEST&amp;amp;forceAnonymousLogin=true&amp;amp;deviceDescription=TEST&amp;amp;deviceId=TEST&amp;amp;permission=ReadWrite&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Note : the (PHP) application is protected by Shibboleth (mod_shib) and uses the same Service Provider as Nuxeo so that the ajax call can be authentificated without user interaction.&lt;/P&gt;
&lt;P&gt;Note : that makes it possible to build one page application in javascript only using the REST API ... promising.&lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2016 08:17:26 GMT</pubDate>
    <dc:creator>pibou_Bouvret</dc:creator>
    <dc:date>2016-05-02T08:17:26Z</dc:date>
    <item>
      <title>How can I use token auth "à la Nuxeo Drive" for using the REST API ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-use-token-auth-quot-%C3%A0-la-nuxeo-drive-quot-for-using/m-p/314575#M1576</link>
      <description>&lt;P&gt;I would like to use the REST API in a Shibboleth protected application. Our Nuxeo instance is also configured to use Shibboleth with the same Service Provider.&lt;/P&gt;
&lt;P&gt;How can I use the Shibboleth credentials so that I can have a token for the current user just like when using Nuxeo Drive ?&lt;/P&gt;
&lt;P&gt;There is little documentation about TOKEN AUTH and some things are not clear :&lt;/P&gt;
&lt;P&gt;using the drive_login.jsp request works in my brower (redirects to Shib Auth and returns the token in the javascript  function drive.create_account)&lt;/P&gt;
&lt;P&gt;but using it in an HTTP requester does not work right from the start (401 : needs HTTP AUTH).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Apr 2016 08:42:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-use-token-auth-quot-%C3%A0-la-nuxeo-drive-quot-for-using/m-p/314575#M1576</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-04-28T08:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use token auth "à la Nuxeo Drive" for using the REST API ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-use-token-auth-quot-%C3%A0-la-nuxeo-drive-quot-for-using/m-p/314576#M1577</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Does you HTTP client support / is configured for redirect?
Indeed, the drive_login.jsp page is protected by the Nuxeo authentication filter which handles the redirection to the authentication page you've configured for the Nuxeo instance, in your case Shibboleth.&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 07:10:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-use-token-auth-quot-%C3%A0-la-nuxeo-drive-quot-for-using/m-p/314576#M1577</guid>
      <dc:creator>ataillefer_</dc:creator>
      <dc:date>2016-05-02T07:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use token auth "à la Nuxeo Drive" for using the REST API ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-use-token-auth-quot-%C3%A0-la-nuxeo-drive-quot-for-using/m-p/314577#M1578</link>
      <description>&lt;P&gt;If fact everything works fine, I only needed the right URL for authentification :&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;/nuxeo/authentication/token?applicationName=TEST&amp;amp;forceAnonymousLogin=true&amp;amp;deviceDescription=TEST&amp;amp;deviceId=TEST&amp;amp;permission=ReadWrite&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Note : the (PHP) application is protected by Shibboleth (mod_shib) and uses the same Service Provider as Nuxeo so that the ajax call can be authentificated without user interaction.&lt;/P&gt;
&lt;P&gt;Note : that makes it possible to build one page application in javascript only using the REST API ... promising.&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 08:17:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-use-token-auth-quot-%C3%A0-la-nuxeo-drive-quot-for-using/m-p/314577#M1578</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-05-02T08:17:26Z</dc:date>
    </item>
  </channel>
</rss>

