在Django中编写双腿OAuth提供程序 [英] Writing a Two-legged OAuth provider in Django

查看:157
本文介绍了在Django中编写双腿OAuth提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个关于在Django中为OAuth编写双脚供应商的教程/示例/说明。

I'm looking for a tutorial/example/explanation about writing a two-legged provider for OAuth in Django.

很难找到有关OAuth提供商的文档,甚至更困难的一个双腿系统...

It's hard to find documentation about a OAuth provider, and even harder about a two-legged system...

推荐答案

'2 legged'只是正常的OAuth请求,无需访问令牌或访问令牌秘密。而已。您仍然使用客户端凭据(标识符和秘密),但使用空字符串作为访问令牌参数。根据您使用的服务器库,您可以在发出请求时省略oauth_token参数。

'2 legged' is just normal OAuth request without an access token or access token secret. That's it. You still use the client credentials (identifier and secret) but use empty strings for the access token parameters. Depending on the server library you use, you can omit the oauth_token parameter when making the request.

这篇关于在Django中编写双腿OAuth提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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