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

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


I've printed req._headers_in and x-remote-user is indeed missing:

<Headers: Raw: {'accept-language': 
['fr,fr-fr;q=0.8,en;q=0.5,en-us;q=0.3'], 'accept-encoding': ['gzip, 
deflate'], 'x-forwarded-host': ['neurospin-cubicweb.intra.cea.fr'], 
'if-none-match': ['"index/guests"'], 'x-forwarded-for': 
['132.166.86.1'], 'host': ['127.0.0.1:8081'], 'accept': 
['text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'], 
'user-agent': ['Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 
Firefox/22.0'], 'dnt': ['1'], 'connection': ['Keep-Alive'], 'referer': 
['http://neurospin-cubicweb.intra.cea.fr/'], 'if-modified-since': ['Thu, 
18 Jul 2013 02:46:48 GMT'], 'cookie': 
['__utma=149244452.401218771.1373614428.1373614428.1373660499.2; 
__utmz=149244452.1373614428.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=cati%20traitement%20centre; 
_ga=GA1.2.401218771.1373614428'], 'x-forwarded-server': 
['neurospin-cubicweb'], 'authorization': ['Basic 
XXXXXXXXXXXXXXXXXXXXXXXX']} Parsed: {'accept-language': <RecalcNeeded>, 
'accept-encoding': <RecalcNeeded>, 'x-forwarded-host': <RecalcNeeded>, 
'if-none-match': <RecalcNeeded>, 'x-forwarded-for': <RecalcNeeded>, 
'host': <RecalcNeeded>, 'accept': <RecalcNeeded>, 'user-agent': 
<RecalcNeeded>, 'dnt': <RecalcNeeded>, 'connection': <RecalcNeeded>, 
'referer': <RecalcNeeded>, 'if-modified-since': <RecalcNeeded>, 
'cookie': <RecalcNeeded>, 'x-forwarded-server': <RecalcNeeded>, 
'authorization': <RecalcNeeded>}>

Le 18/07/2013 08:11, Sylvain Thénault a écrit :
>[...]
>    print self._cw._headers_in
>
> will print the incoming request's HTTP headers.
> [...]

-- 
Dimitri Papadopoulos
CEA/Saclay
I2BM, NeuroSpin
91191 Gif-sur-Yvette cedex, France



More information about the Cubicweb mailing list