diff options
Diffstat (limited to 'keystone')
| -rw-r--r-- | keystone/config.py | 1 | ||||
| -rw-r--r-- | keystone/middleware/auth_token.py | 4 |
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: |
