Python:OAuth 库 [英] Python: OAuth Library

查看:46
本文介绍了Python:OAuth 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有完整的用于 oauth 的 Python 库?我还没有发现任何处理 oauth 令牌过期后重新发布的令牌(Yahoo OAuth 流程).

Is there a full flegged python library for oauth? I haven't found any that handle reissuing of oauth tokens once they expire (Step 5 on the Yahoo OAuth flow).

那么什么是最完整的?我尝试了 oauth.net 中的一个,但它无法处理 oauth_session_handle 如果端点返回它,oauth 规范说它是必需的(就像雅虎一样).

So what is the most complete? I tried the one from oauth.net, and it doesn't handle oauth_session_handle which the oauth spec says is required if the endpoint returns it (like yahoo does).

那么,我应该使用什么库?是不是都是不完整的,我必须自己做?

So, what library should I be using? Are they all incomplete and I have to do it on my own?

推荐答案

我认为 Leah Culver 的 python-oauth(您已经找到)是最好的起点,即使它不完整.

I think Leah Culver's python-oauth (that you've already found) is the best starting point even though it's not complete.

Leah 在 github 上有一个镜像,可以方便地进行协作:http://github.com/leah/python-oauth/tree/master/oauth/

Leah has a mirror up on github which would make it easy to collaborate: http://github.com/leah/python-oauth/tree/master/oauth/

更新:就目前而言,它看起来像 SimpleGeo 的 python-oauth2 是最好的起点.

Update: As it stands today, it looks like SimpleGeo's python-oauth2 is the best starting point.

这篇关于Python:OAuth 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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