完整的“具有 oauth 支持的 django 活塞”例子

发布于 2024-09-11 09:58:17 字数 579 浏览 1 评论 0原文

我遵循了网上的许多教程和示例来设置和使用 django 活塞。它们都完美地工作,直到我尝试集成 oauth 身份验证。我一直在研究以下示例:

http:// blog.carduner.net/2010/01/26/django-piston-and-oauth/ http://github.com/clemesha/django-piston-oauth-example

然而,这两个似乎都未能包含所需的 oauth 模板和视图的示例。我很可能只是没有正确实施它,所以任何建议都会非常有帮助。

总之。我有一个可用的 django 活塞设置(返回/插入数据)。我正在努力解决的是集成 oauth 身份验证的明确指南。即我需要安装什么,需要创建哪些视图、设置、URL 模式和模板?

谢谢

I have followed a number of tutorials and examples on the web to setup and use django piston. They all work flawlessly, until i try to integrate oauth authentication. I have been working against the following examples:

http://blog.carduner.net/2010/01/26/django-piston-and-oauth/
http://github.com/clemesha/django-piston-oauth-example

Yet both of these seem to fail to include examples of the required oauth templates and views. It is quite likely that i'm just not implementing it properly, so any advice would be hugely helpful.

In summary. I have a working django piston setup (that returns / inserts data). What i am struggling with is a definitive guide to integrating oauth authentication. I.e. what do i need to install, which views, settings, url patterns and templates do i need to create?

Thanks

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

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

发布评论

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

评论(1

巡山小妖精 2024-09-18 09:58:17

如果您使用的是 Piston 的发布版本,您可能会对我们如何在 Snowy 中实现 OAuth 感兴趣,Snowy 是我们针对 Tomboy 的 AGPL Web 应用程序注释:

http://git.gnome.org/browse/snowy/tree/urls.py#n48

http://git.gnome.org/browse/snowy/tree/api/urls.py

http://git.gnome.org/browse/snowy/tree/ api/templates/piston/authorize_token.html

http:// git.gnome.org/browse/snowy/tree/api/handlers.py

OAuth 视图与活塞捆绑在一起(在发布版本中)。

我还没有升级到 prencher 改进的 OAuth 分支(显然很快就会变成 0.3?),但如果您使用他的代码,这里是他的说明:

http://groups.google.com/group/django-piston/msg/5a148c8e33654c5d

(请务必阅读他在该线程中的所有回复,当他做出一些澄清时)

If you're using a released version of Piston, you might be interested in how we implemented OAuth in Snowy, our AGPL web app for Tomboy notes:

http://git.gnome.org/browse/snowy/tree/urls.py#n48

http://git.gnome.org/browse/snowy/tree/api/urls.py

http://git.gnome.org/browse/snowy/tree/api/templates/piston/authorize_token.html

http://git.gnome.org/browse/snowy/tree/api/handlers.py

The OAuth views are bundled with piston (in the released version).

I have yet to upgrade to prencher's improved OAuth fork (which will apparently turn into 0.3 soon?), but here are his instructions if you are using his code:

http://groups.google.com/group/django-piston/msg/5a148c8e33654c5d

(make sure to read all of his responses in that thread, as he makes some clarifications)

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