diff options
author | Jamie Lennox <jamielennox@gmail.com> | 2017-09-29 15:23:26 +1000 |
---|---|---|
committer | Gage Hugo <gagehugo@gmail.com> | 2018-05-10 14:40:39 +0000 |
commit | b39132daa08dea102f40ccba051fab0c2d96af01 (patch) | |
tree | 6b58d2865d07ebf2f0693c41ffe2e7b2fd86a5f4 /keystone/tests/unit/test_cli.py | |
parent | 03a616d1bf5715ac74756f2cb3aec1f09352de81 (diff) | |
download | keystone-b39132daa08dea102f40ccba051fab0c2d96af01.tar.gz |
Remove the TokenAuth middleware
The entire purpose of this confusingly named middleware is to take token
values out of headers and put them into a dictionary. There's no point
in this, we have a request class that can abstract this for us.
Deprecate the middleware, it's unnecessary.
bp: deprecated-as-of-rocky
Change-Id: I09310bab6bd728127288ba4c3cf8f884a31e2b98
Diffstat (limited to 'keystone/tests/unit/test_cli.py')
-rw-r--r-- | keystone/tests/unit/test_cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keystone/tests/unit/test_cli.py b/keystone/tests/unit/test_cli.py index 247df99f8..62557bfe7 100644 --- a/keystone/tests/unit/test_cli.py +++ b/keystone/tests/unit/test_cli.py @@ -178,7 +178,7 @@ class CliBootStrapTestCase(unit.SQLDriverOverrides, unit.TestCase): self._do_test_bootstrap(bootstrap) # build validation request request = self.make_request(is_admin=True) - request.context_dict['subject_token_id'] = token + request.headers['X-Subject-Token'] = token # Make sure the token we authenticate for is still valid. v3_token_controller.validate_token(request) @@ -209,7 +209,7 @@ class CliBootStrapTestCase(unit.SQLDriverOverrides, unit.TestCase): self._do_test_bootstrap(bootstrap) # build validation request request = self.make_request(is_admin=True) - request.context_dict['subject_token_id'] = token + request.headers['X-Subject-Token'] = token # Since the user account was recovered with a different password, we # shouldn't be able to validate this token. Bootstrap should have # persisted a revocation event because the user's password was updated. |