I am not sure where I should be putting bug reports, so please let me
know.

There is a bug in 'gluon/contrib/login_methods/openid_auth.py'.

On line 244:
- self.db.alt_logins.insert(username=oid, user=user)
+ self.db.alt_logins.insert(username=oid, user=user.id) # there is a
DB error when trying to insert the object.  changing to the id fixed
it.

This next bug appears to be only with GAE, but I think its a bad
practice and should be fixed.
On line 243:
- print "[DB] %s authenticated" % oid
+ # print "[DB] %s authenticated" % oid  # this breaks GAE

When the 'print' is done on the local server, it just prints it to the
console (not an issue), but on GAE, it adds it as part of the response
and sends it before the headers which causes the redirect after
authentication to fail.

With these two fixes I have successfully gotten OpenID working on
GAE.  More details can be found here:
http://groups.google.com/group/web2py/browse_thread/thread/4a8efd13814358b9/2d852852418a1673?#2d852852418a1673

Cheers and let me know if you have questions.

Reply via email to