一种Twisted代理实现,它对keystone进行身份验证,并使用keystone身份验证凭据对请求的URL进行身份验证。
txKeystone的Python项目详细描述
#扭曲的python keystone代理
[![构建状态](https://secure.travis ci.org/racker/python twisted keystone agent.png)(http://travis ci.org/racker/python twisted keystone agent)
=代理(reactor)
rackspace_username=''此处是您的用户名
rackspace_api key=''此处是您的api密钥
auth_url='https://identity.api.rackspace cloud.com/v2.0/tokens'
keystone_agent=keystneagent(代理,
auth_url,
(rackspace_username,rackspace_apikey))
```
`keystone_agent`现在可以像[twisted.web.client.agent]一样使用(http://twistedmatrix.com/documents/current/web/howto/client.html)
(请参阅“[接收响应](http://twistedmatrix.com/documents/current/web/howto/client.html auto4)”)
以向rackspace api发出请求,“x-tenant-id”和“x-auth-token”标题将自动设置。
[![构建状态](https://secure.travis ci.org/racker/python twisted keystone agent.png)(http://travis ci.org/racker/python twisted keystone agent)
=代理(reactor)
rackspace_username=''此处是您的用户名
rackspace_api key=''此处是您的api密钥
auth_url='https://identity.api.rackspace cloud.com/v2.0/tokens'
keystone_agent=keystneagent(代理,
auth_url,
(rackspace_username,rackspace_apikey))
```
`keystone_agent`现在可以像[twisted.web.client.agent]一样使用(http://twistedmatrix.com/documents/current/web/howto/client.html)
(请参阅“[接收响应](http://twistedmatrix.com/documents/current/web/howto/client.html auto4)”)
以向rackspace api发出请求,“x-tenant-id”和“x-auth-token”标题将自动设置。