256

Please note: this is an ancient question with ancient answers. Most of the linked apps are now unmaintained. These days, most people seem to use django-allauth or python-social-auth. I'll leave the original question intact below for posterity's sake.


There are at least half a dozen Django apps that provide OpenID authentication for Django:

I played around with a couple of them. Simon Willison's django-openid made a good impression, but as he is at the forefront of trendsetting in Djangoland, I sometimes have difficulties wrapping my head around his trends (e.g. the whole dynamic urlpatterns system in django-openid). What's more, I couldn't get login to work with Google.

django-authopenid made a good impression, and it seems to have good integration with django-registration. django-socialauth and django-socialregistration have support for Twitter and Facebook, which is definitely a plus. Who knows if and when Facebook will start to be an OpenID provider...? socialauth seems to have its share of problems, though.

So, what is the best OpenID app out there? Please share any positive (and negative) experience. Thanks!

2
  • 8
    django-social-auth by Matías Aguirre is another one, and it looks pretty active as a project as of today. Apart from OpenId it supports all major providers (FB, Twitter, LinkedIn, etc.), supports user data population and multiple social accounts association to single users.
    – Peterino
    Mar 11, 2011 at 23:21
  • 1
    Note: django-social-auth has been renamed to python-social-auth. Oct 6, 2013 at 23:18

6 Answers 6

87
+150

The one that has proven to work best for me, and which seems most up-to-date is the one over at launchpad.

It integrated seamlessly with my application that already utilizes the django.auth module.

https://launchpad.net/django-openid-auth

To get a copy run:

bzr branch lp:django-openid-auth

Or install it via PyPI

pip install django-openid-auth
8
  • 1
    thank you! Is there any manual how to use it? I did not find it on launchpad. Feb 1, 2011 at 16:03
  • 2
    There are some examples in the code repo bazaar.launchpad.net/~django-openid-auth/django-openid-auth/… along with an installation guide in the Readme.txt
    – Daniel
    Feb 2, 2011 at 12:45
  • 2
    it's on pypi -> pip install django-openid-auth
    – kioopi
    Jul 29, 2012 at 17:26
  • where i can find documentation
    – Surya
    Apr 19, 2013 at 5:46
  • 2
    Unfortunately it's not compatible with django 1.5 - you'll get errors when rendering the templates
    – Elliott
    Jul 14, 2013 at 19:30
32

The last post for this thread is in February. It's been almost 8 months and I'm pretty sure a lot of things have been changed.

I am very interested in Django-Socialauth since it supports gmail, yahoo, facebook, twitter, and OpenID.

I found two forks that seem up-to-date:

https://github.com/uswaretech/Django-Socialauth

https://github.com/agiliq/Django-Socialauth

The second fork has been recently updated at this moment.

I was wondering if anyone has recently used any of these forks? I am looking for the most reliable one for my website.

Thanks

Update: The most up-to-date fork appears to be omab/django-social-auth, which is also what the pypi package points at.

4
  • 2
    I've got it working using pip install django-social-auth, which looks to line up well with this fork: github.com/omab/django-social-auth. As a newbie, the most confusing thing was understanding how to align my login/error templates with the socialauth urls and views. The example site in the fork I mentioned helped a lot.
    – Aidan Ryan
    Dec 4, 2011 at 19:17
  • 1
    django-social-auth != Django-Socialauth, in fact, the first was created after hours of frustration with Django-Socialauth.
    – omab
    Sep 27, 2012 at 1:13
  • 1
    There is a newer fork at github.com/omab/django-social-auth
    – Wernight
    Oct 23, 2012 at 12:10
  • 2
    django-social-auth is now deprecated in favor of omab/python-social-auth
    – mgalgs
    Sep 25, 2013 at 7:37
12

I prefer django-authopenid, but I think most of the mature solutions are pretty equal at this point. Still, it is what I see used the most. I've made a handful of customizations to how we use it without having to actually fork it, and that's a huge plus in my book. In other words, its fairly hookable.

8

Don't forget Elf Sternberg's fork of django-socialauth - he's working to clean up what he sees as a lot of bad implementation decisions in the original socialauth app. Looks clean so far but it's unclear whether his project will have momentum.

5

django-socialauth is good for me

1

You could try pinax

1
  • 4
    Isn't that a bit too much? Though if he just needs openid, he can take a look on which one Pinax chose.
    – Agos
    Jan 31, 2010 at 16:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.