<?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: Authentication to REST API with OAuth2 in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/authentication-to-rest-api-with-oauth2/m-p/318217#M5218</link>
    <description>&lt;P&gt;Even if I recommend you to use something easier to handle HTTP request; like jersey-client, to query our REST API, you just need to&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2015 15:01:29 GMT</pubDate>
    <dc:creator>Arnaud_Kervern</dc:creator>
    <dc:date>2015-09-25T15:01:29Z</dc:date>
    <item>
      <title>Authentication to REST API with OAuth2</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/authentication-to-rest-api-with-oauth2/m-p/318214#M5215</link>
      <description>&lt;P&gt;Hi,
I'm using REST API within a Web Java App to get query results which works great but the next step is to authenticate without having to use user's passwords.&lt;/P&gt;
&lt;P&gt;Is using OAuth2 to authenticate, the best way to do it ?&lt;/P&gt;
&lt;P&gt;I've tried it and so far I can't get the response that will give me the authorization code to get the access token via Java code.  When I try with http requests, it's ok but I have to accept (through oauth2Grant.jsp button), but I am missing something with using it with a Java HttpURLConnection...&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2015 21:43:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/authentication-to-rest-api-with-oauth2/m-p/318214#M5215</guid>
      <dc:creator>chouinard_</dc:creator>
      <dc:date>2015-09-21T21:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication to REST API with OAuth2</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/authentication-to-rest-api-with-oauth2/m-p/318215#M5216</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I think there are several others solutions that fit better to your case.
As you do not want to add any new user authentication step:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;if your queries are executed server side on the same host, the easiest way is to use nuxeo-platform-login-portal-sso. A simple query header with a shared secret and the authenticated username.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;if your queries are server side without a DMZ, you have to sign the request to ensure it goes safe. In this case i'll recommend you to use Oauth1 2 legged. Take a look to this jersey client filter to see how to handle it: &lt;A href="https://github.com/nuxeo/nuxeo.io-manager/blob/master/nuxeo-io-manager/src/main/java/org/nuxeo/io/connect/OauthAuthFilter.java" target="test_blank"&gt;https://github.com/nuxeo/nuxeo.io-manager/blob/master/nuxeo-io-manager/src/main/java/org/nuxeo/io/connect/OauthAuthFilter.java&lt;/A&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;if your queries are client &amp;lt;-&amp;gt; server, you can use nuxeo-platform-login-token, when authenticating a user; you'll ask Nuxeo to give you a token that you'll add to each user requests.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 24 Sep 2015 11:42:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/authentication-to-rest-api-with-oauth2/m-p/318215#M5216</guid>
      <dc:creator>Arnaud_Kervern</dc:creator>
      <dc:date>2015-09-24T11:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication to REST API with OAuth2</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/authentication-to-rest-api-with-oauth2/m-p/318216#M5217</link>
      <description>&lt;P&gt;Hi, thanks for the answer.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 16:27:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/authentication-to-rest-api-with-oauth2/m-p/318216#M5217</guid>
      <dc:creator>chouinard_</dc:creator>
      <dc:date>2015-09-24T16:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication to REST API with OAuth2</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/authentication-to-rest-api-with-oauth2/m-p/318217#M5218</link>
      <description>&lt;P&gt;Even if I recommend you to use something easier to handle HTTP request; like jersey-client, to query our REST API, you just need to&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 15:01:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/authentication-to-rest-api-with-oauth2/m-p/318217#M5218</guid>
      <dc:creator>Arnaud_Kervern</dc:creator>
      <dc:date>2015-09-25T15:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication to REST API with OAuth2</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/authentication-to-rest-api-with-oauth2/m-p/318218#M5219</link>
      <description>&lt;P&gt;Where can we find some documentation about using nuxeo-platform-login-token from a client application ?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 09:12:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/authentication-to-rest-api-with-oauth2/m-p/318218#M5219</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2016-04-28T09:12:53Z</dc:date>
    </item>
  </channel>
</rss>

