Django的OpenID最好的解决方案是什么? [英] What's the best solution for OpenID with Django?

查看:170
本文介绍了Django的OpenID最好的解决方案是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请注意:这是一个古老的问题与古老的答案。大多数已链接的应用程序现在都未被保护。这些天,大多数人似乎使用 django-allauth python-social-auth 。我将把原来的问题保留下来,以便后世。

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.

至少有六个Django应用程序提供Django的OpenID认证:

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

  • django-openid
  • django-openid-auth
  • another django-openid-auth, which seems to be dead
  • django-authopenid
  • django-socialauth (which also provides authentication with Twitter and Facebook accounts)
  • django-socialregistration (has Facebook and Twitter authentication, too)
  • django-openid-consumer, a fork of Simon Willison's original django-openid. Seems more suited for simple blog comments than a full fledged registration workflow
  • django-social-auth

我玩了几个。 Simon Willison的 django-openid 创造了一个很好的印象,但由于他处于Djangoland潮流潮流的前沿我有时候很难围绕自己的发展趋势(例如,django-openid中的整个动态urlpatterns系统)。此外,我无法登录使用Google。

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 做出了很好的印象,似乎与 django-registration django-socialauth django-socialregistration 支持Twitter和Facebook,这绝对是一个加分。谁知道Facebook何时开始成为OpenID提供商? socialauth似乎有其分享的问题,但是,

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.

那么,OpenID最好的应用是什么?请分享任何积极(和消极)的经验。谢谢!

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

推荐答案

已证明对我最有效,而且最为最新的是一个在启动板上。

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

它与我的应用程序无缝集成,已经使用了django.auth模块。

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

a href =https://launchpad.net/django-openid-auth =noreferrer> https://launchpad.net/django-openid-auth

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

要运行副本:

bzr branch lp:django-openid-auth

或通过PyPI安装它

pip install django-openid-auth

这篇关于Django的OpenID最好的解决方案是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆