[Cubicweb] trustedauth: cannot get it to work

Dimitri Papadopoulos Orfanos dimitri.papadopoulos at cea.fr
Tue Jul 16 16:28:47 CEST 2013

Dear all,

I'm unable to get cubicweb-trustedauth to work.

I have created a custom application cube for our Brainomics/Imagen 
server. As far as I can tell this cube is making use of 

$ cat /usr/share/cubicweb/cubes/imagen/__pkginfo__.py
__depends__ =  {'cubicweb': '>= 3.16.1',
                 'cubicweb-brainomics': None,
                 'cubicweb-trustedauth': None,
$ cat /etc/cubicweb.d/imagen/bootstrap_cubes
# this is a generated file only used for bootstraping
# you should not have to edit this

The Apache front-end is aware of my 'dp165978' identifier: I'm able to 
log in and get past Apache using that identifier. I have also defined 
such a user in CubicWeb using the CubicWeb shell:

 >>> create_entity('CWUser', login=u'dp165978', upassword=u'test')
<Entity CWUser 1684 ['surname', 'last_login_time', 'firstname', 
'upassword', 'creation_date', 'cwuri', 'login', 'modification_date'] at 
 >>> rql('SET U in_group G WHERE U login "dp165978", G name "users"')
<resultset 'SET U in_group G WHERE U login "dp165978", G name "users"' 
(1 rows): [1684, 5]>
 >>> commit()

Yet CubicWeb does not recognize my identifier and displays the following 
error message:
	authentication failure

But could be going wrong?

Here is some more additional information:

* Screenshot of the error message:

* Logging in as "admin" directly from CubicWeb just after 
Apache-CubicWeb login failure:

* User "dp165978" is known to CubicWeb:

* Output of "cubicweb-ctl start -D imagen":

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

More information about the Cubicweb mailing list