summaryrefslogtreecommitdiffstats
path: root/keystone/middleware
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-07-13 15:08:14 +0000
committerGerrit Code Review <review@openstack.org>2012-07-13 15:08:14 +0000
commita7d73d2c4bb42a70eab2fa299c2d79fa2c8ac10f (patch)
treeb3e5bdf40452697c8da4cb34da6e410521d20d2f /keystone/middleware
parent1b33ddd74d75048ecba633d0841a051f72da0903 (diff)
parentae0515c3a078ce27ccca1ef5a98092208c030f2f (diff)
downloadkeystone-a7d73d2c4bb42a70eab2fa299c2d79fa2c8ac10f.tar.gz
keystone-a7d73d2c4bb42a70eab2fa299c2d79fa2c8ac10f.tar.xz
keystone-a7d73d2c4bb42a70eab2fa299c2d79fa2c8ac10f.zip
Merge "Admin Auth URI prefix"
Diffstat (limited to 'keystone/middleware')
-rw-r--r--keystone/middleware/auth_token.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/keystone/middleware/auth_token.py b/keystone/middleware/auth_token.py
index 0fa35fde..3c379983 100644
--- a/keystone/middleware/auth_token.py
+++ b/keystone/middleware/auth_token.py
@@ -139,6 +139,7 @@ class AuthProtocol(object):
default_auth_uri = '%s://%s:%s' % (self.auth_protocol,
self.auth_host,
self.auth_port)
+ self.auth_admin_prefix = conf.get('auth_admin_prefix', '')
self.auth_uri = conf.get('auth_uri', default_auth_uri)
# SSL
@@ -297,8 +298,9 @@ class AuthProtocol(object):
if body:
kwargs['body'] = jsonutils.dumps(body)
+ full_path = self.auth_admin_prefix + path
try:
- conn.request(method, path, **kwargs)
+ conn.request(method, full_path, **kwargs)
response = conn.getresponse()
body = response.read()
except Exception, e: