<?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: Configuring mod_sso? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/configuring-mod-sso/m-p/318908#M5909</link>
    <description>&lt;P&gt;Ok, I'll be answering myself here. It was actually pretty simple, only I needed to :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;know how to force my authenticationChain to prevail (like explained &lt;A href="http://answers.nuxeo.com/questions/231/several-authenticationchains-who-wins"&gt;here&lt;/A&gt;)&lt;/LI&gt;
&lt;LI&gt;forget about my PHP "knowledge" and set the ssoHeaderName to "Auth-User" instead of "HTTP_AUTH_USER".&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;And then, with all that, my Nuxeo instance is officially connected to LemondLDAP::NG (through a reverse-proxy, CAS/Shibboleth might come later).&lt;/P&gt;</description>
    <pubDate>Fri, 23 Sep 2011 18:13:46 GMT</pubDate>
    <dc:creator>OlivierM_</dc:creator>
    <dc:date>2011-09-23T18:13:46Z</dc:date>
    <item>
      <title>Configuring mod_sso?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/configuring-mod-sso/m-p/318906#M5907</link>
      <description>&lt;P&gt;Is there any recent document describing the use of org.nuxeo.ecm.platform.login.mod_sso ?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2011 12:01:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/configuring-mod-sso/m-p/318906#M5907</guid>
      <dc:creator>OlivierM_</dc:creator>
      <dc:date>2011-09-16T12:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring mod_sso?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/configuring-mod-sso/m-p/318907#M5908</link>
      <description>&lt;P&gt;Ok, some more information about what I'm fighting against. I installed org.nuxeo.ecm.platform.login.mod_sso (it's shown in the list after &lt;STRONG&gt;INFO  [org.nuxeo.runtime.deployment.preprocessor.DeploymentPreprocessor] Preprocessing order:&lt;/STRONG&gt;).&lt;/P&gt;
&lt;P&gt;On server start, it's shown as registered and merged as an authentificator:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2011-09-16 15:03:17,730 DEBUG [org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService] merged AuthenticationPluginDescriptor: BASIC_AUTH
2011-09-16 15:03:18,959 DEBUG [org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService] registered AuthenticationPluginDescriptor: PROXY_AUTH
2011-09-16 15:03:18,960 DEBUG [org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService] merged AuthenticationPluginDescriptor: PROXY_AUTH
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(among others)&lt;/P&gt;
&lt;P&gt;I configured my extension point to read the requested header :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;extension
      target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
      point="authenticators"&amp;gt;
      &amp;lt;authenticationPlugin
              name="PROXY_AUTH"
              enabled="true"
              class="org.nuxeo.ecm.platform.ui.web.auth.proxy.ProxyAuthenticator"&amp;gt;
       &amp;lt;loginModulePlugin&amp;gt;Trusting_LM&amp;lt;/loginModulePlugin&amp;gt;
       &amp;lt;parameters&amp;gt;
         &amp;lt;parameter name="ssoHeaderName"&amp;gt;HTTP_AUTH_USER&amp;lt;/parameter&amp;gt;
       &amp;lt;/parameters&amp;gt;
      &amp;lt;/authenticationPlugin&amp;gt;
  &amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And I even tested - by pointing my reverse proxy on a simple PHP page showing phpinfo() - that the env var is sent. So, as far as I'm concerned, everything should work. But when I try to access the instance through the proxy, login page is shown (and working). According to my logs :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2011-09-16 16:03:07,484 DEBUG [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] Entering Nuxeo Authentication Filter
2011-09-16 16:03:07,484 DEBUG [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] Principal not found inside Request via getUserPrincipal
2011-09-16 16:03:07,484 DEBUG [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] Try getting authentication from cache
2011-09-16 16:03:07,485 DEBUG [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] Trying to retrieve userIndetification using plugin BASIC_AUTH
2011-09-16 16:03:07,485 DEBUG [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] Trying to retrieve userIndetification using plugin FORM_AUTH
2011-09-16 16:03:07,485 DEBUG [org.nuxeo.ecm.platform.ui.web.auth.plugins.FormAuthenticator] Looking for user/password in the request
2011-09-16 16:03:07,485 DEBUG [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] Trying to retrieve userIndetification using plugin WEBENGINE_FORM_AUTH
2011-09-16 16:03:07,485 DEBUG [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] Trying to retrieve userIndetification using plugin ANONYMOUS_AUTH
2011-09-16 16:03:07,505 DEBUG [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] Trying to retrieve userIndetification using plugin WEBSERVICES_AUTH
2011-09-16 16:03:07,505 DEBUG [org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter] user/password not found in request, try into identity cache
2011-09-16 16:03:07,538 DEBUG [org.nuxeo.ecm.platform.ui.web.auth.plugins.FormAuthenticator] Forward to Login Screen
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For the sake of completeness (sorry for the lengthy post), here is my plugin chain :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&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;PROXY_AUTH&amp;lt;/plugin&amp;gt;
      &amp;lt;/plugins&amp;gt;
    &amp;lt;/authenticationChain&amp;gt;
  &amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So it looks like my plugin chain (BASIC_AUTH, then PROXY_AUTH) isn't even taken into account. Any idea, anyone?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2011 16:11:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/configuring-mod-sso/m-p/318907#M5908</guid>
      <dc:creator>OlivierM_</dc:creator>
      <dc:date>2011-09-16T16:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring mod_sso?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/configuring-mod-sso/m-p/318908#M5909</link>
      <description>&lt;P&gt;Ok, I'll be answering myself here. It was actually pretty simple, only I needed to :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;know how to force my authenticationChain to prevail (like explained &lt;A href="http://answers.nuxeo.com/questions/231/several-authenticationchains-who-wins"&gt;here&lt;/A&gt;)&lt;/LI&gt;
&lt;LI&gt;forget about my PHP "knowledge" and set the ssoHeaderName to "Auth-User" instead of "HTTP_AUTH_USER".&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;And then, with all that, my Nuxeo instance is officially connected to LemondLDAP::NG (through a reverse-proxy, CAS/Shibboleth might come later).&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2011 18:13:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/configuring-mod-sso/m-p/318908#M5909</guid>
      <dc:creator>OlivierM_</dc:creator>
      <dc:date>2011-09-23T18:13:46Z</dc:date>
    </item>
  </channel>
</rss>

