开发者

Difference between django-openid and django-openid-auth?

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 authenticatio开发者_如何学Pythonn mechanisms.


openid-auth was last updated in Oct 2007

I guess, now the choice is simple. :)


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜