summaryrefslogtreecommitdiff
path: root/openstackclient/identity
diff options
context:
space:
mode:
Diffstat (limited to 'openstackclient/identity')
-rw-r--r--openstackclient/identity/client.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/openstackclient/identity/client.py b/openstackclient/identity/client.py
index 7f5390c8..172910f5 100644
--- a/openstackclient/identity/client.py
+++ b/openstackclient/identity/client.py
@@ -66,7 +66,17 @@ def make_client(instance):
insecure=instance._insecure,
trust_id=instance._trust_id,
)
+
+ # TODO(dtroyer): the identity v2 role commands use this yet, fix that
+ # so we can remove it
instance.auth_ref = client.auth_ref
+
+ # NOTE(dtroyer): this is hanging around until restapi is replace by
+ # ksc session
+ instance.session.set_auth(
+ client.auth_ref.auth_token,
+ )
+
return client