<?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 nuxeo-platform-login-portal-sso 401 Server Error? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-platform-login-portal-sso-401-server-error/m-p/324264#M11265</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;New user to Nuxeo and trying to follow the steps of using the nuxeo-platform-login-portal-sso plugin, using the steps outlined here: &lt;A href="http://answers.nuxeo.com/questions/1002/how-do-i-integrate-with-nuxeo-platform-login-portal-sso-in-my-portal" target="test_blank"&gt;http://answers.nuxeo.com/questions/1002/how-do-i-integrate-with-nuxeo-platform-login-portal-sso-in-my-portal&lt;/A&gt;  We are trying to use the Nuxeo Automation Client (Java) to authenticate using the portal-sso plugin.  Here's the Java code in the automation client:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;HttpAutomationClient client = new HttpAutomationClient("http://localhost:8080/nuxeo/site/automation"
client.setRequestInterceptor(new PortalSSOAuthInterceptor("nuxeo5secretkey", "myUser"));
Session session = client.getSession();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;At the point that 'getSession()' is called we get the following error from Tomcat:  401 - Server Error  "This request requires HTTP authentication."&lt;/P&gt;
&lt;P&gt;We are using a standard tomcat deployment and have put in our own portalsso-config.xml file per the documentation.&lt;/P&gt;
&lt;P&gt;Any ideas on why we would still be getting the 401 Server Error?&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 11 May 2015 17:00:43 GMT</pubDate>
    <dc:creator>NuxeoNate_</dc:creator>
    <dc:date>2015-05-11T17:00:43Z</dc:date>
    <item>
      <title>nuxeo-platform-login-portal-sso 401 Server Error?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-platform-login-portal-sso-401-server-error/m-p/324264#M11265</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;New user to Nuxeo and trying to follow the steps of using the nuxeo-platform-login-portal-sso plugin, using the steps outlined here: &lt;A href="http://answers.nuxeo.com/questions/1002/how-do-i-integrate-with-nuxeo-platform-login-portal-sso-in-my-portal" target="test_blank"&gt;http://answers.nuxeo.com/questions/1002/how-do-i-integrate-with-nuxeo-platform-login-portal-sso-in-my-portal&lt;/A&gt;  We are trying to use the Nuxeo Automation Client (Java) to authenticate using the portal-sso plugin.  Here's the Java code in the automation client:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;HttpAutomationClient client = new HttpAutomationClient("http://localhost:8080/nuxeo/site/automation"
client.setRequestInterceptor(new PortalSSOAuthInterceptor("nuxeo5secretkey", "myUser"));
Session session = client.getSession();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;At the point that 'getSession()' is called we get the following error from Tomcat:  401 - Server Error  "This request requires HTTP authentication."&lt;/P&gt;
&lt;P&gt;We are using a standard tomcat deployment and have put in our own portalsso-config.xml file per the documentation.&lt;/P&gt;
&lt;P&gt;Any ideas on why we would still be getting the 401 Server Error?&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2015 17:00:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-platform-login-portal-sso-401-server-error/m-p/324264#M11265</guid>
      <dc:creator>NuxeoNate_</dc:creator>
      <dc:date>2015-05-11T17:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: nuxeo-platform-login-portal-sso 401 Server Error?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-platform-login-portal-sso-401-server-error/m-p/324265#M11266</link>
      <description>&lt;P&gt;[SOLVED] The issue for us was that we needed to add an extension in the *-config.xml to the specificAuthenticationChain using "Automation".&lt;/P&gt;
&lt;P&gt;An example file that worked for us looks like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;component name="MyAPP.Mod_sso"&amp;gt;
&amp;lt;require&amp;gt;org.nuxeo.ecm.platform.ui.web.auth.defaultConfig&amp;lt;/require&amp;gt;
&amp;lt;require&amp;gt;org.nuxeo.ecm.platform.login.Portal&amp;lt;/require&amp;gt;
&amp;lt;extension
  target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
  point="authenticators"&amp;gt;
  &amp;lt;authenticationPlugin
          name="PORTAL_AUTH"&amp;gt;
   &amp;lt;loginModulePlugin&amp;gt;Trusting_LM&amp;lt;/loginModulePlugin&amp;gt;
   &amp;lt;parameters&amp;gt;
     &amp;lt;parameter name="secret"&amp;gt;nuxeo5secretkey&amp;lt;/parameter&amp;gt;
     &amp;lt;parameter name="maxAge"&amp;gt;3600&amp;lt;/parameter&amp;gt;
   &amp;lt;/parameters&amp;gt;
  &amp;lt;/authenticationPlugin&amp;gt;
&amp;lt;/extension&amp;gt;

&amp;lt;!-- Include Portal Auth into authentication chain --&amp;gt;
&amp;lt;extension
  target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
  point="chain"&amp;gt;
  &amp;lt;authenticationChain&amp;gt;
    &amp;lt;plugins&amp;gt;
      &amp;lt;!--  Keep basic Auth at top of Auth chain to support RSS access via BasicAuth --&amp;gt;
      &amp;lt;plugin&amp;gt;BASIC_AUTH&amp;lt;/plugin&amp;gt;
      &amp;lt;plugin&amp;gt;PORTAL_AUTH&amp;lt;/plugin&amp;gt;
      &amp;lt;plugin&amp;gt;FORM_AUTH&amp;lt;/plugin&amp;gt;
    &amp;lt;/plugins&amp;gt;
  &amp;lt;/authenticationChain&amp;gt;
&amp;lt;/extension&amp;gt;

&amp;lt;extension
  target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
  point="specificChains"&amp;gt;
  &amp;lt;!-- Setup Automation client to use the Portal SSO plugin --&amp;gt;
  &amp;lt;specificAuthenticationChain name="Automation"&amp;gt;
    &amp;lt;urlPatterns&amp;gt;
      &amp;lt;url&amp;gt;(.*)/automation.*&amp;lt;/url&amp;gt;
    &amp;lt;/urlPatterns&amp;gt;

    &amp;lt;replacementChain&amp;gt;
      &amp;lt;plugin&amp;gt;BASIC_AUTH&amp;lt;/plugin&amp;gt;
      &amp;lt;plugin&amp;gt;PORTAL_AUTH&amp;lt;/plugin&amp;gt;
      &amp;lt;plugin&amp;gt;FORM_AUTH&amp;lt;/plugin&amp;gt;
    &amp;lt;/replacementChain&amp;gt;
  &amp;lt;/specificAuthenticationChain&amp;gt;
&amp;lt;/extension&amp;gt;
&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that if you need REST API as well, you may need to add another extension in this file for REST API to use portal SSO authentication.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2015 20:35:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-platform-login-portal-sso-401-server-error/m-p/324265#M11266</guid>
      <dc:creator>NuxeoNate_</dc:creator>
      <dc:date>2015-05-11T20:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: nuxeo-platform-login-portal-sso 401 Server Error?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-platform-login-portal-sso-401-server-error/m-p/324266#M11267</link>
      <description>&lt;P&gt;do you happen to know which extension we need to add for the REST API&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 06:36:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-platform-login-portal-sso-401-server-error/m-p/324266#M11267</guid>
      <dc:creator>Eduardo_Rodrigu</dc:creator>
      <dc:date>2017-03-30T06:36:29Z</dc:date>
    </item>
  </channel>
</rss>

