Fix the metadata server auth (KeystoneCreds only sent from heat)
Change-Id: I918ff76485649ec56312f7029895d61e0cbf7a4b Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
f45d436263
commit
d36d8d38ba
@ -173,9 +173,10 @@ class ContextMiddleware(wsgi.Middleware):
|
|||||||
# I Haven't tested to see if WSGI stuff would escape
|
# I Haven't tested to see if WSGI stuff would escape
|
||||||
# everything to make this safe. However, I haven't found
|
# everything to make this safe. However, I haven't found
|
||||||
# a better way to do this either.
|
# a better way to do this either.
|
||||||
creds = eval(req.params['KeyStoneCreds'])
|
if 'KeyStoneCreds' in req.params:
|
||||||
username = creds['username']
|
creds = eval(req.params['KeyStoneCreds'])
|
||||||
password = creds['password']
|
username = creds['username']
|
||||||
|
password = creds['password']
|
||||||
|
|
||||||
token = headers.get('X-Auth-Token')
|
token = headers.get('X-Auth-Token')
|
||||||
service_user = headers.get('X-Admin-User')
|
service_user = headers.get('X-Admin-User')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user