Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-22980

Default Authentication chain should not references TOKEN_AUTH plugin

    XMLWordPrintable

    Details

      Description

      In the authentication-contrib.xml file of the nuxeo-platform-web-common module, we define a default authentication chain like this :

        <extension
            target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
            point="chain">
      
          <authenticationChain>
            <plugins>
              <plugin>BASIC_AUTH</plugin>
              <plugin>TOKEN_AUTH</plugin>
              <plugin>FORM_AUTH</plugin>
              <plugin>ANONYMOUS_AUTH</plugin>
              <plugin>WEBSERVICES_AUTH</plugin>
            </plugins>
          </authenticationChain>
      
        </extension>
      

      The problem is that the TOKEN_AUTH plugin is defined in the token-authentication-contrib.xml file of the nuxeo-platform-login-token module, which is not in the dependencies of nuxeo-platform-web-common.

      So 2 options :
      1) Remove the TOKEN_AUTH from the default authentication chain
      -> maybe put override the default authentication chain in nuxeo-platform-login-token module
      2) Add a dependency on nuxeo-platform-login-token in nuxeo-platform-web-common and a required on org.nuxeo.ecm.login.token.authentication.contrib in authentication-contrib.xml
      -> I don't think it is possible because nuxeo-platform-login-token depends on automation-server which should depend on nuxeo-platform-web-common (not sure)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yjulienne Yannis Julienne
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: