1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/openstack/requests/identity/validate_token.rb
Hunter Nield 330c28c5a8 [openstack|identity] Rough implementation of the Keystone API (untested)
Updated Openstack to handle other endpoints
2012-04-30 10:34:58 +08:00

27 lines
411 B
Ruby
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module Fog
module Identity
class Openstack
class Real
def validate_token(token_id, tenant_id)
request(
:expects => [200, 203],
:method => 'GET',
:path => "tokens/#{token_id}?belongsTo=#{tenant_id}"
)
# TODO: Handle 404
end
end
class Mock
end
end
end
end