summaryrefslogtreecommitdiffstats
path: root/keystone/middleware
diff options
context:
space:
mode:
Diffstat (limited to 'keystone/middleware')
-rw-r--r--keystone/middleware/swift_auth.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/keystone/middleware/swift_auth.py b/keystone/middleware/swift_auth.py
index 6a858f75..dfdf8fe3 100644
--- a/keystone/middleware/swift_auth.py
+++ b/keystone/middleware/swift_auth.py
@@ -135,9 +135,9 @@ class SwiftAuth(object):
if environ.get('HTTP_X_IDENTITY_STATUS') != 'Confirmed':
return
roles = []
- if 'HTTP_X_ROLE' in environ:
- roles = environ['HTTP_X_ROLE'].split(',')
- identity = {'user': environ.get('HTTP_X_USER'),
+ if 'HTTP_X_ROLES' in environ:
+ roles = environ['HTTP_X_ROLES'].split(',')
+ identity = {'user': environ.get('HTTP_X_USER_NAME'),
'tenant': (environ.get('HTTP_X_TENANT_ID'),
environ.get('HTTP_X_TENANT_NAME')),
'roles': roles}