diff options
| author | Matthieu Huin <mhu@enovance.com> | 2014-06-30 19:12:27 +0200 |
|---|---|---|
| committer | Matthieu Huin <mhu@enovance.com> | 2014-07-03 10:12:02 +0200 |
| commit | 5672c688d1cc7cdc064510daa6251d39edbf3033 (patch) | |
| tree | ef26483e1af85c7c28f7dbd441e3065d2271ee04 /openstackclient/common | |
| parent | ddf0c16a1025524e469b25800e119d9c1da772f6 (diff) | |
| download | python-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/common')
| -rw-r--r-- | openstackclient/common/clientmanager.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openstackclient/common/clientmanager.py b/openstackclient/common/clientmanager.py index 353a0a19..b310f3ac 100644 --- a/openstackclient/common/clientmanager.py +++ b/openstackclient/common/clientmanager.py @@ -48,7 +48,8 @@ class ClientManager(object): username=None, password=None, user_domain_id=None, user_domain_name=None, project_domain_id=None, project_domain_name=None, - region_name=None, api_version=None, verify=True): + region_name=None, api_version=None, verify=True, + trust_id=None): self._token = token self._url = url self._auth_url = auth_url @@ -64,6 +65,7 @@ class ClientManager(object): self._project_domain_name = project_domain_name self._region_name = region_name self._api_version = api_version + self._trust_id = trust_id self._service_catalog = None # verify is the Requests-compatible form |
