django 中的 OpenID 没有本地站点帐户

发布于 2024-07-26 05:02:25 字数 479 浏览 4 评论 0原文

我正在开发一个 django 网站,我希望该网站的身份验证部分能够像 Stack Overflow 的工作方式一样工作。 新用户来到该网站,他们点击“创建新帐户”,选择他们的 OpenID 提供商,进行验证,然后使用“openiduser4356”或其他内容作为用户名为他们创建一个帐户。 然后,用户可以进入首选项并将用户名更改为他们想要的任何内容。 我根本不需要任何类型的本地帐户注册。

我几乎花了一整天的时间来让 django-authopenid 正常工作,似乎这个插件工作的唯一方法是将 OpenID 身份添加到现有帐户中。 哎呀,当你安装了 django-authopenid 时,你甚至无法运行你的网站,除非你也安装了 django-registration...

在我花一天的时间与这个东西搏斗并尝试让它做我想要的事情之前,我'我宁愿立即知道这种事情是否可能/是个好主意。 我注意到 django 还有一些其他的 OpenID 插件。 他们中有人更擅长做我想做的事情吗?

I'm working on a django site, which I want the authentication part to work exactly like how Stack Overflow works. A new user comes to the site, they click on "create new account", choose their OpenID provider, get validated, then an account is created for them with "openiduser4356" or something as the username. The user can then go into preferences and change the username to whatever they want. I don't want any kind of local account sign-ups at all.

I pretty much spent all day getting django-authopenid working and it seems the only way this plugin works is by adding OpenID identities to already existing accounts. Heck, you can't even run your site when you have django-authopenid installed unless you have django-registration installed as well...

Before I spend another day wrestling with this thing to try getting it to do what I want, I'd rather just know off the bat if this kind of thing is even possible/a good idea. I noticed that there are a few other OpenID plugins for django out there. Are any of them any better at doing what I'm trying to do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

眉目亦如画i 2024-08-02 05:02:26

您还可以查看 django-openid 的一个分支,django-openid-consumer 。 它适用于最新的 python-openid 库。

You might also take a look at a fork of django-openid, django-openid-consumer. It works with the most recent python-openid libraries.

与之呼应 2024-08-02 05:02:26

如果您不介意使用 rpxnow.com,请查看 http://github.com /howthebodyworks/django-rpx/tree/master

If you don't mind using rpxnow.com, check out http://github.com/howthebodyworks/django-rpx/tree/master

給妳壹絲溫柔 2024-08-02 05:02:25

django-openid 不依赖于 django-registration。

django-openid does not depend on django-registration.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文