This is a client library for the Openstack Keystone API. It is not feature complete... yet.
local KeystoneClient = require('keystone').Client
local authUrl = 'https://identity.api.rackspacecloud.com/v2.0'
local options = {
username = 'userId',
apikey = 'apikey'
}
local client = KeystoneClient:new(authUrl, options)
client:tenantIdAndToken('cloudMonitoring', function(err, obj)
if err then
p(err)
return
end
p(obj.token)
p(obj.expires)
p(obj.tenantId)
end)
- Token Support
- Tenant ID Support
- username [required] - 'String'
- password [optional] - 'String'
- apikey [optional] - 'String'
One of password or apikey is required
- Everything else
Apache 2.0
- Ryan Phillips (rphillips)