summaryrefslogtreecommitdiff
path: root/oslo_context/context.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-11-10 18:36:26 +0000
committerGerrit Code Review <review@openstack.org>2016-11-10 18:36:26 +0000
commitb788a184a05edef5b3d8a6f9ee84ea366c847196 (patch)
tree29a598a66aa7cb2a003745f47819d49118bacb59 /oslo_context/context.py
parente4c9c1d6976c7b8304298df4286480338e24a3ae (diff)
parent2cd47bc2ef6496c0f1d9bfcc19f620ea38a59894 (diff)
downloadoslo-context-b788a184a05edef5b3d8a6f9ee84ea366c847196.tar.gz
Merge "Revert "Fix X-User and X-Tenant deprecated headers in from_environ""2.11.0
Diffstat (limited to 'oslo_context/context.py')
-rw-r--r--oslo_context/context.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/oslo_context/context.py b/oslo_context/context.py
index 350271e..481b18c 100644
--- a/oslo_context/context.py
+++ b/oslo_context/context.py
@@ -41,16 +41,16 @@ _request_store = threading.local()
# header to support backwards compatibility.
_ENVIRON_HEADERS = {'auth_token': ['HTTP_X_AUTH_TOKEN',
'HTTP_X_STORAGE_TOKEN'],
- 'user': ['HTTP_X_USER_ID'],
+ 'user': ['HTTP_X_USER_ID',
+ 'HTTP_X_USER'],
'tenant': ['HTTP_X_PROJECT_ID',
- 'HTTP_X_TENANT_ID'],
+ 'HTTP_X_TENANT_ID',
+ 'HTTP_X_TENANT'],
'user_domain': ['HTTP_X_USER_DOMAIN_ID'],
'project_domain': ['HTTP_X_PROJECT_DOMAIN_ID'],
- 'user_name': ['HTTP_X_USER_NAME',
- 'HTTP_X_USER'],
+ 'user_name': ['HTTP_X_USER_NAME'],
'project_name': ['HTTP_X_PROJECT_NAME',
- 'HTTP_X_TENANT_NAME',
- 'HTTP_X_TENANT'],
+ 'HTTP_X_TENANT_NAME'],
'user_domain_name': ['HTTP_X_USER_DOMAIN_NAME'],
'project_domain_name': ['HTTP_X_PROJECT_DOMAIN_NAME'],
'request_id': ['openstack.request_id'],