[Cubicweb] [PROVENANCE INTERNET] Re: trustedauth: cannot get it to work

Dimitri Papadopoulos Orfanos dimitri.papadopoulos at cea.fr
Thu Jul 18 01:53:35 CEST 2013


After looking at the code in trustedauth/views.py, it indeed looks like 
Apache does not send x-remote-user.

I have to explain this to the sysadmins though. How to print the 
contents of the HTTP header? More simply, how to print the contents of 

My guess is that the Apache configuration is probably missing this:
Still, I need to explain whatever error is occurring in CubicWeb to the 

I've submitted a patch for better debug messages in this case:

Le 16/07/2013 17:24, Dimitri Papadopoulos Orfanos a écrit :
> Le 16/07/2013 16:57, Julien Cristau a écrit :
>> You can't debug that from the client, since this is all between apache
>> and cubicweb.
>> Your debug log contains:
>> 2013-07-16 14:21:13 - (cubicweb.appobject) DEBUG: web authenticator
>> building auth info
>> 2013-07-16 14:21:13 - (cubicweb.appobject) DEBUG: encoding info for None
>> which as far as I can tell means there's no x-remote-user header,
>> though.  See
>> http://hg.logilab.org/master/cubes/trustedauth/file/c26b9d268046/views.py#l48
>> Cheers,
>> Julien
> I see. I will have to debug this issue, probably by printing out "req".
> But then I don't understand why an exception is not thrown at some point
> in authentication_information(), which would send this useful error
> message:
>      self.debug('web authenticator failed (%s)', exc)

Dimitri Papadopoulos
I2BM, NeuroSpin
91191 Gif-sur-Yvette cedex, France
+33 (0)1 69 08 79 12

More information about the Cubicweb mailing list