Configure External and basic authentication to work toghether

cancel
Showing results for 
Search instead for 
Did you mean: 
oounoughi
Established Member

Configure External and basic authentication to work toghether

Hello,

I have an External Autentication based with cookies, here a sample of my bean :

<bean id="remoteUserMapper" class="fr.foo.wsso.web.app.servlet.WssoRemoteUserMapper">
      <property name="cookieUserGUID">
         <value>MDP-WSSO-MDPWSSOGUID</value>
      </property>
....
</bean>

I can use the external with my internal applications, but I can't use basic authentication to authenticate on /share and /alfresco

and I can't use CMIS in others applications, when I create session with :

parameters.put(SessionParameter.USER, username);
parameters.put(SessionParameter.PASSWORD, password);

It doesn't work when external authentication is enable, here is my chain conf :

authentication.chain=alfrescoNtlm1:alfrescoNtlm,external1:external

Can someone help me pls to enable basic authentication with the external, I can't find solution.

Alfresco intsalled with: alfresco-community-distribution-201707.zip


Regards,

O.

1 Reply
Highlighted
oounoughi
Established Member

Re: Configure External and basic authentication to work toghether

A simple test I did is with curl :

curl -u admin:admin http://<ALFRESCO-URL>:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom
{
    "status" :
  {
    "code" : 500,
    "name" : "Internal Error",
    "description" : "An error inside the HTTP server which prevented it from fulfilling the request."
  },

  "message" : "java.lang.NullPointerException",
  "exception" : "",

  "callstack" :
  [

  ],

  "server" : "Community v5.2.0 (re21f2be5-b22) schema 10 057",
  "time" : "11 oct. 2019 17:12:26"
}

when I disable External authentication, it work fine