summaryrefslogtreecommitdiffstats
path: root/keystone
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
parent1b33ddd74d75048ecba633d0841a051f72da0903 (diff)
parentae0515c3a078ce27ccca1ef5a98092208c030f2f (diff)
downloadkeystone-a7d73d2c4bb42a70eab2fa299c2d79fa2c8ac10f.tar.gz
keystone-a7d73d2c4bb42a70eab2fa299c2d79fa2c8ac10f.tar.xz
keystone-a7d73d2c4bb42a70eab2fa299c2d79fa2c8ac10f.zip
Merge "Admin Auth URI prefix"
Diffstat (limited to 'keystone')
-rw-r--r--keystone/config.py1
-rw-r--r--keystone/middleware/auth_token.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/keystone/config.py b/keystone/config.py
index 86c50c82..8529eb8a 100644
--- a/keystone/config.py
+++ b/keystone/config.py
@@ -117,6 +117,7 @@ register_str('compute_port', default=8774)
register_str('admin_port', default=35357)
register_str('public_port', default=5000)
register_str('onready')
+register_str('auth_admin_prefix', default='')
#ssl options
register_bool('enable', group='ssl', default=False)
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: