tags:

views:

277

answers:

2

I found two python libs to perform openid authentication with django: django-openid and django-openid-auth. I don't get the difference between the two, mostly (I think) because I have no experience with the django authentication mechanisms.

+1  A: 

openid-auth was last updated in Oct 2007

I guess, now the choice is simple. :)

Lakshman Prasad
A: 

It seems like the django-openid-auth project has a recent release (version 0.2) on their own project site released one day after becomingGuru posted his answer!

I just tried both. For django-openid I had to change yadis imports to become:

from openid.yadis import xri

Which was done in some places and not others. I also had to change maxlength to max_length to work with newer django versions.

For django-openid-auth, it worked better right off the bat. One thing that I'll have to fine-tune is creating django users from the openid logins with:

in settings.py:

OPENID_CREATE_USERS = True

Right now, it's creating users in the django users table like openiduser, openiduser2, etc, which doesn't seem useful.

Firass