Hi

In our case, we configure the chain like that

target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
      point="chain">
    <authenticationChain>
      <plugins>
        <plugin>CAS2_AUTH</plugin>
        <plugin>BASIC_AUTH</plugin>
      </plugins>
    </authenticationChain>
  </extension>
</component>


If you wants to get another authentication process for specific url, you have to add an existension point like that

<!-- Include Portal SSO Auth into authentication chain -->
<extension
target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
      point="specificChains">

<specificAuthenticationChain name="Automation">
<urlPatterns>
<url>(.*)/automation.*</url>
</urlPatterns>

<replacementChain>
<plugin>AUTOMATION_BASIC_AUTH</plugin>
<plugin>PORTAL_AUTH</plugin> <!-- authentication module for portal access to the automation webservices -->
<plugin>ANONYMOUS_AUTH</plugin>
</replacementChain>
</specificAuthenticationChain>
</extension>

++ Olivier

Le 31/03/2011 17:44, [email protected] a écrit :
Hi,

I try to use the nuxeo-platform-login-cas2 plugin with
5.4.1.

Copied the nuxeo-platform-login-cas2 jar in
nxserver/bundles

Config file nxserver/config/CAS2-config.xml


<component name="MyAPP.Cas2SSO">

<require>org.nuxeo.ecm.platform.ui.web.auth.defaultConfig</require>
    <require>org.nuxeo.ecm.platform.login.Cas2SSO</require>

    <!--  configure you CAS server parameters -->
    <extension

target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
       point="authenticators">
       <authenticationPlugin
               name="CAS2_AUTH">
        <loginModulePlugin>Trusting_LM</loginModulePlugin>
        <parameters>
          <parameter name="ticketKey">ticket</parameter>
          <parameter
name="appURL">http://nuxeoserver.net:9080/nuxeo/nxstartup.faces</parameter>
          <parameter
name="serviceLoginURL">https://caserver.net:8443/cas/login</parameter>
          <parameter
name="serviceValidateURL">https://caserver.net:8443/cas/serviceValidate</parameter>
          <parameter name="serviceKey">service</parameter>
          <parameter
name="logoutURL">https://caserver.net:8443/cas/logout</parameter>
        </parameters>
       </authenticationPlugin>
   </extension>

    <!-- Include CAS2 into authentication chain -->
     <extension

target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
       point="chain">
     <authenticationChain>
       <plugins>
         <plugin>BASIC_AUTH</plugin>
         <plugin>CAS2_AUTH</plugin>
       </plugins>
     </authenticationChain>
   </extension>
</component>



I get anonymous access but when I try to authenticate, I get
the login form.


---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/


---
Mailing list: [email protected]
Forum: http://forum.nuxeo.org/f/1/

Reply via email to