summaryrefslogtreecommitdiff
path: root/swift/common/middleware/tempauth.py
diff options
context:
space:
mode:
Diffstat (limited to 'swift/common/middleware/tempauth.py')
-rw-r--r--swift/common/middleware/tempauth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/swift/common/middleware/tempauth.py b/swift/common/middleware/tempauth.py
index 55fc65272..646edc437 100644
--- a/swift/common/middleware/tempauth.py
+++ b/swift/common/middleware/tempauth.py
@@ -273,7 +273,7 @@ class TempAuth(object):
return self.app(env, start_response)
if env.get('PATH_INFO', '').startswith(self.auth_prefix):
return self.handle(env, start_response)
- s3 = env.get('swift3.auth_details')
+ s3 = env.get('s3api.auth_details')
token = env.get('HTTP_X_AUTH_TOKEN', env.get('HTTP_X_STORAGE_TOKEN'))
service_token = env.get('HTTP_X_SERVICE_TOKEN')
if s3 or (token and token.startswith(self.reseller_prefix)):
@@ -435,7 +435,7 @@ class TempAuth(object):
else:
groups = groups.encode('utf8')
- s3_auth_details = env.get('swift3.auth_details')
+ s3_auth_details = env.get('s3api.auth_details')
if s3_auth_details:
if 'check_signature' not in s3_auth_details:
self.logger.warning(