diff options
author | Miguel Grinberg <miguel.grinberg@gmail.com> | 2014-12-16 06:45:22 +0000 |
---|---|---|
committer | Miguel Grinberg <miguelgrinberg50@gmail.com> | 2014-12-23 18:40:13 -0800 |
commit | 0ba4dacbe292a182ac4ccd69f1133aa6cdba8045 (patch) | |
tree | d03b1b8c1590984cda6fc3bb7836a7e8a9228cf2 /heat/tests/fakes.py | |
parent | c16f539c5351d3dcc05422126b6f0cd67b627459 (diff) | |
download | heat-0ba4dacbe292a182ac4ccd69f1133aa6cdba8045.tar.gz |
Authenticate the domain user with id instead of username
This change makes the authentication process that requests a domain user
token provide user_id and password instead of username and password.
Authenticating with the user_id is more reliable, as that works even when
the username is truncated or modified in any other way before it is passed
to Keystone.
Change-Id: I7b2897c2be1e4ad7f55549449b1791991572a7f1
Closes-bug: 1402894
Diffstat (limited to 'heat/tests/fakes.py')
-rw-r--r-- | heat/tests/fakes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heat/tests/fakes.py b/heat/tests/fakes.py index cd0386c4f..defc46d0a 100644 --- a/heat/tests/fakes.py +++ b/heat/tests/fakes.py @@ -175,5 +175,5 @@ class FakeKeystoneClient(object): credential_id): pass - def stack_domain_user_token(self, username, project_id, password): + def stack_domain_user_token(self, user_id, project_id, password): return 'adomainusertoken' |