summaryrefslogtreecommitdiffstats
path: root/tests/test_auth_plugin.py
diff options
context:
space:
mode:
authorGuang Yee <guang.yee@hp.com>2013-06-20 10:06:17 -0700
committerGuang Yee <guang.yee@hp.com>2013-07-12 13:34:22 -0700
commitc238ace30981877e5991874c5b193ea7d5107419 (patch)
tree8e74ad5b2c05d2295d6c78c005cc97b26270e153 /tests/test_auth_plugin.py
parent24a6f41405299e4c7c9e2d80969311b1c9b6fb5a (diff)
downloadkeystone-c238ace30981877e5991874c5b193ea7d5107419.tar.gz
keystone-c238ace30981877e5991874c5b193ea7d5107419.tar.xz
keystone-c238ace30981877e5991874c5b193ea7d5107419.zip
Implements Pluggable V3 Token Provider
Abstract V3 token provider backend to make token provider pluggable. It enables deployers to customize token management to add their own capabilities. Token provider is responsible for issuing, checking, validating, and revoking tokens. Note the distinction between token 'driver' and 'provider'. Token 'driver' simply provides token persistence. It does not issue or interpret tokens. Token provider is specified by the 'provider' property in the '[token]' section of the Keystone configuration file. Partially implemented blueprint pluggable-token-format. This patch also fixes bug 1186061. Change-Id: I755fb850765ea99e5237626a2e645e6ceb42a9d3
Diffstat (limited to 'tests/test_auth_plugin.py')
-rw-r--r--tests/test_auth_plugin.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_auth_plugin.py b/tests/test_auth_plugin.py
index 22357471..d158ec46 100644
--- a/tests/test_auth_plugin.py
+++ b/tests/test_auth_plugin.py
@@ -20,6 +20,7 @@ from keystone import test
from keystone import auth
from keystone import exception
+from keystone import token
# for testing purposes only
@@ -49,6 +50,11 @@ class TestAuthPlugin(test.TestCase):
test.testsdir('test_auth_plugin.conf')])
self.load_backends()
auth.controllers.AUTH_METHODS[METHOD_NAME] = SimpleChallengeResponse()
+
+ # need to register the token provider first because auth controller
+ # depends on it
+ token.provider.Manager()
+
self.api = auth.controllers.Auth()
def test_unsupported_auth_method(self):