summaryrefslogtreecommitdiff
path: root/openstackclient/identity/client.py
diff options
context:
space:
mode:
authorMatthieu Huin <mhu@enovance.com>2014-06-30 19:12:27 +0200
committerMatthieu Huin <mhu@enovance.com>2014-07-03 10:12:02 +0200
commit5672c688d1cc7cdc064510daa6251d39edbf3033 (patch)
treeef26483e1af85c7c28f7dbd441e3065d2271ee04 /openstackclient/identity/client.py
parentddf0c16a1025524e469b25800e119d9c1da772f6 (diff)
downloadpython-openstackclient-5672c688d1cc7cdc064510daa6251d39edbf3033.tar.gz
trust authentication
This patch enables authenticating by using a trust. The trust ID must be set with the parameter --os-trust-id or the env variable OS_TRUST_ID. Trusts are available for the identity v3 API. Co-Authored-By: Florent Flament <florent.flament@cloudwatt.com> Change-Id: Iacc389b203bbadda53ca31a7f5a9b8b6e1a1f522
Diffstat (limited to 'openstackclient/identity/client.py')
-rw-r--r--openstackclient/identity/client.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/openstackclient/identity/client.py b/openstackclient/identity/client.py
index b58098e9..32a2c23b 100644
--- a/openstackclient/identity/client.py
+++ b/openstackclient/identity/client.py
@@ -43,6 +43,7 @@ def make_client(instance):
token=instance._token,
cacert=instance._cacert,
insecure=instance._insecure,
+ trust_id=instance._trust_id,
)
else:
LOG.debug('instantiating identity client: password flow')
@@ -61,6 +62,7 @@ def make_client(instance):
region_name=instance._region_name,
cacert=instance._cacert,
insecure=instance._insecure,
+ trust_id=instance._trust_id,
)
instance.auth_ref = client.auth_ref
return client