diff options
Diffstat (limited to 'keystoneclient/v2_0/client.py')
-rw-r--r-- | keystoneclient/v2_0/client.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/keystoneclient/v2_0/client.py b/keystoneclient/v2_0/client.py index a609b87..fb59ffc 100644 --- a/keystoneclient/v2_0/client.py +++ b/keystoneclient/v2_0/client.py @@ -113,7 +113,11 @@ class Client(client.HTTPClient): """ Set the client's service catalog from the response data. """ self.service_catalog = service_catalog.ServiceCatalog(body) try: - self.auth_token = self.service_catalog.get_token()['id'] + sc = self.service_catalog.get_token() + self.auth_token = sc['id'] + # Save these since we have them and they'll be useful later + self.auth_tenant_id = sc['tenant_id'] + self.auth_user_id = sc['user_id'] except KeyError: raise exceptions.AuthorizationFailure() |