OAuth 2.0客户端
ndg-oauth-client的Python项目详细描述
这是一个oauth 2.0客户端库和wsgi中间件过滤器。
释放量
0.6.0
- Clean up of password-based authentication of client by authorization server
- Removal of redundant MyProxy hooks
0.5.1
新的伪版本与ndg_oauth_服务器包版本控制保持同步。不 从0.4.0更改。新的ndg_oauth_服务器0.5.1包含来自w van engen包括对客户端基于密码的身份验证的支持。见 有关详细信息,请参阅ndg_oauth_服务器包。
0.4.0
- Revised examples in ndg.oauth.client.examples. bearer_tok uses bearer token to secure access to a simple html page on a resource server, slcs is an example protecting a short-lived credential service aka Online Certificate Authority. This requires the ContrailOnlineCAClient package and should be used in conjunction with the equivalent example in the ndg_oauth_server example.
- Revised ndg.oauth.client.lib.oauth2client.Oauth2Client to include support for bearer access token passed in Authorization header to resource server.
先决条件
这是针对Python2.6和2.7开发和测试的。
安装
可以使用easy_install或pip执行安装。
配置
示例包含在示例/子文件夹中:
- 持票人
- 这将配置一个使用基于字符串的令牌的简单测试应用程序。
- slcs/:
- 保护短期凭证服务或在线ca的承载令牌示例。 本例需要contrilonlinecaservice包。
这些示例应与ndg_oauth_服务器包一起使用。