<?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 via oAuth2 does not redirect in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/authentication-via-oauth2-does-not-redirect/m-p/316936#M3937</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;By default, the documentation you're looking at &lt;A href="https://doc.nuxeo.com/nxdoc/using-oauth2/" target="test_blank"&gt;https://doc.nuxeo.com/nxdoc/using-oauth2/&lt;/A&gt; is for the latest Fast Track version of Nuxeo, currently 9.2, and the OAuth2 implementation has changed since the latest LTS version: LTS 2016.
I believe your Nuxeo instance's version is LTS 2016. That's why you don't see the "Redirect URIs" field in the OAuth2 consumer registration form since it was added post LTS 2016.&lt;/P&gt;
&lt;P&gt;Please have a look at the LTS 2016 documentation by switching the version below the "OAuth2" page title.&lt;/P&gt;
&lt;P&gt;You will see that for this version the authorization endpoint is &lt;CODE&gt;/oauth2/authorization&lt;/CODE&gt; instead of &lt;CODE&gt;/oauth2/authorize&lt;/CODE&gt; for the latest Fast Track.&lt;/P&gt;
&lt;P&gt;So something like &lt;CODE&gt;&lt;A href="https://NUXEO_SERVER/nuxeo/oauth2/authorization?response_type=code&amp;amp;client_id=xxxx&amp;amp;redirect_uri=yyyy" target="test_blank"&gt;https://NUXEO_SERVER/nuxeo/oauth2/authorization?response_type=code&amp;amp;client_id=xxxx&amp;amp;redirect_uri=yyyy&lt;/A&gt;&lt;/CODE&gt; should be working.&lt;/P&gt;
&lt;P&gt;Note that depending on the redirect_uri you're using to test, the browser might not handle it as you would expect it. For instance, using &lt;CODE&gt;&lt;A href="https://NUXEO_SERVER/nuxeo" target="test_blank"&gt;https://NUXEO_SERVER/nuxeo&lt;/A&gt;&lt;/CODE&gt; won't work because then you'll be redirected to the Nuxeo UI which will remove the authorization code form the URL.&lt;/P&gt;
&lt;P&gt;The redirect_uri is intended to redirect to an external application: an OAuth2 consumer, client of Nuxeo, able to parse the code parameter from the redirect URI. To test, using a fake redirect_uri like &lt;CODE&gt;&lt;A href="https://testRedirectURI" target="test_blank"&gt;https://testRedirectURI&lt;/A&gt;&lt;/CODE&gt; should work, you should be redirected then see the code in the browser's address bar.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2017 14:26:08 GMT</pubDate>
    <dc:creator>ataillefer_</dc:creator>
    <dc:date>2017-11-09T14:26:08Z</dc:date>
    <item>
      <title>Authentication via oAuth2 does not redirect</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/authentication-via-oauth2-does-not-redirect/m-p/316935#M3936</link>
      <description>&lt;P&gt;I am trying to authenticate to our Nuxeo server via oAuth2.
I have registered an oauth client on the server.
I make the call and I get a login screen. I login but it then does not redirect back so I can I get the authorization code. It logs directly into the nuxeo server.  The call is similar to what is listed in directions I just swapped out our server and added a redirect_uri
&lt;A href="https://NUXEO_SERVER/nuxeo/oauth2/authorize?response_type=code&amp;amp;client_id=myApp&amp;amp;redirect_uri=xxx" target="test_blank"&gt;https://NUXEO_SERVER/nuxeo/oauth2/authorize?response_type=code&amp;amp;client_id=myApp&amp;amp;redirect_uri=xxx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;One thing I noticed for the instructions on registering an oauth client (https://doc.nuxeo.com/nxdoc/using-oauth2/).  Is it shows a field for Redirect URIs.  But on my server it does not have this field.  Is there something wrong with setup on our server.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 00:34:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/authentication-via-oauth2-does-not-redirect/m-p/316935#M3936</guid>
      <dc:creator>Alissa_Whitney</dc:creator>
      <dc:date>2017-11-09T00:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication via oAuth2 does not redirect</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/authentication-via-oauth2-does-not-redirect/m-p/316936#M3937</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;By default, the documentation you're looking at &lt;A href="https://doc.nuxeo.com/nxdoc/using-oauth2/" target="test_blank"&gt;https://doc.nuxeo.com/nxdoc/using-oauth2/&lt;/A&gt; is for the latest Fast Track version of Nuxeo, currently 9.2, and the OAuth2 implementation has changed since the latest LTS version: LTS 2016.
I believe your Nuxeo instance's version is LTS 2016. That's why you don't see the "Redirect URIs" field in the OAuth2 consumer registration form since it was added post LTS 2016.&lt;/P&gt;
&lt;P&gt;Please have a look at the LTS 2016 documentation by switching the version below the "OAuth2" page title.&lt;/P&gt;
&lt;P&gt;You will see that for this version the authorization endpoint is &lt;CODE&gt;/oauth2/authorization&lt;/CODE&gt; instead of &lt;CODE&gt;/oauth2/authorize&lt;/CODE&gt; for the latest Fast Track.&lt;/P&gt;
&lt;P&gt;So something like &lt;CODE&gt;&lt;A href="https://NUXEO_SERVER/nuxeo/oauth2/authorization?response_type=code&amp;amp;client_id=xxxx&amp;amp;redirect_uri=yyyy" target="test_blank"&gt;https://NUXEO_SERVER/nuxeo/oauth2/authorization?response_type=code&amp;amp;client_id=xxxx&amp;amp;redirect_uri=yyyy&lt;/A&gt;&lt;/CODE&gt; should be working.&lt;/P&gt;
&lt;P&gt;Note that depending on the redirect_uri you're using to test, the browser might not handle it as you would expect it. For instance, using &lt;CODE&gt;&lt;A href="https://NUXEO_SERVER/nuxeo" target="test_blank"&gt;https://NUXEO_SERVER/nuxeo&lt;/A&gt;&lt;/CODE&gt; won't work because then you'll be redirected to the Nuxeo UI which will remove the authorization code form the URL.&lt;/P&gt;
&lt;P&gt;The redirect_uri is intended to redirect to an external application: an OAuth2 consumer, client of Nuxeo, able to parse the code parameter from the redirect URI. To test, using a fake redirect_uri like &lt;CODE&gt;&lt;A href="https://testRedirectURI" target="test_blank"&gt;https://testRedirectURI&lt;/A&gt;&lt;/CODE&gt; should work, you should be redirected then see the code in the browser's address bar.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 14:26:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/authentication-via-oauth2-does-not-redirect/m-p/316936#M3937</guid>
      <dc:creator>ataillefer_</dc:creator>
      <dc:date>2017-11-09T14:26:08Z</dc:date>
    </item>
  </channel>
</rss>

