cancel
Showing results for 
Search instead for 
Did you mean: 

Logging on in Share based on HTTP headers

kbonnet
Champ in-the-making
Champ in-the-making
Hello Alfrescians,

I had the impression that Share logged users in based on the configured header, X-Alfresco-Remote-User by default. In my test setup i did the authentication with basic authentication. In the final setup we will be using Open A-Select.

Now it appears that Share is not logging in user based on the configurable header, but on the Authorization header, set by basic authentication. Can you confirm this?

When i let the Apache server in front of tomcat ask for basic authentication, i get logged into Share with the entered username. The password may differ from the password for that user in Alfresco. When i remove the basic authentication, Share is asking for credentials. I have tried to set the Authorization header myself, with mod_headers, but Share isnt picking that up, although it should be the only effect basic authentication had.

Does anyone know answers to the following questions:

    On what criteria is Share deciding to either show the login form or log in the user automatically? It has to do with basic authentication, but cannot be the only thing, because then setting the Authorization header should be sufficient.

    Will authentication based on a configurable header be part of future releases? It would be valuable to have the same authentication mechanisms for Alfresco Explore and Share.
Thanks for your thoughts.

Koen
2 REPLIES 2

dward
Champ on-the-rise
Champ on-the-rise
The share (client) web app does not pay attention to the X-Alfresco-Remote-User HTTP header. Only the alfresco (server) web app.

Share will pay attention to HttpServletRequest.getRemoteUser() i.e. the REMOTE_USER CGI variable.

loftux
Star Contributor
Star Contributor
The share (client) web app does not pay attention to the X-Alfresco-Remote-User HTTP header. Only the alfresco (server) web app.

Share will pay attention to HttpServletRequest.getRemoteUser() i.e. the REMOTE_USER CGI variable.

What does this mean? Is it possible to configure HTTP Header access. I'm trying to do this for Share 3.3 Community. See http://forums.alfresco.com/en/viewtopic.php?f=9&t=26472
If it is possible, how do I do this?