Sun, 30 Nov 2008

Django and OpenID

posted at: 23:16 | Tags: , | permalink | trackback | 1 comment(s)

I've been meaning to start developing the server part for Recycloid. It's otherwise quite boring server, but it should allow users to login using OpenID. I finally decided to look into implementing it using Django.

For OpenID, I found three options: django-authopenid, django-openid and django-openid-auth. In the following I will take a look into first two of them, focusing on their suitability to my needs. The third one seems abandoned (only developed between Sep 27 - Oct 18 2007), so I will not look into it further.

django-authopenid (version 0.9.6)

django-authopenid is easy to set up by following the README. Its main feature is that it allows users to login either with "legacy" username/password pair or an OpenID. When user authenticates via OpenID for the first time, user needs to associate the OpenID either with an existing account or a new account. That basically means that the user needs to either login with site specific username and a password or create a new account picking a unique username and a new password. That's pretty much the chore I was hoping OpenID would make obsolete.

django-authopenid has seen a pretty steady development since its birth on Nov 2007. I gather that this project is based on an older version of django-openid code. Support for multiple OpenIDs per account is under development, while it is part of django-openid feature set already.

django-openid (SVN checkout, revision 57)

I had to work a little to get this one installed and working. It seems like it's developed using Python 2.5 (or newer), but I'm doing this experiment on a Debian 4.0 which comes with Python 2.4.4. First thing I needed to do is install a backport of hashlib, which is bundled in Python 2.5. That was easy. But the combination of Python 2.4 and hashlib 20081119 triggered a bug in python-openid library, which seems to get fixed with a little patch.

Once installed, this package seems to fit my requirements quite nicely. User logs in and that's it. No need for registering with the site.

As can be seen from the version, this project hasn't actually released anything, yet. The development of this software began on Feb 2007, and has seen intermittent activity since. The activity has still been more active than most one man shows.

 
['openid', 'django', 'django']

Add a comment.

Trackback from relevant webpage
Mon Feb 17 20:42:16 2014

vakuumi : /index.html