lib/openstack_bridge/authentication.rb in openstack_bridge-0.0.1 vs lib/openstack_bridge/authentication.rb in openstack_bridge-0.0.2

- old
+ new

@@ -9,9 +9,14 @@ request.body = auth_hash.to_json request.headers['Content-Type'] = 'application/json' self.response = JSON.parse(HTTPI.post(request, :curb).body) end + def token + self.response['access']['token']['id'] + end + + private def auth_hash { "auth" => { "passwordCredentials" =>{ "username" => username,