summaryrefslogtreecommitdiffstats
path: root/custodia/httpd/authorizers.py
diff options
context:
space:
mode:
Diffstat (limited to 'custodia/httpd/authorizers.py')
-rw-r--r--custodia/httpd/authorizers.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/custodia/httpd/authorizers.py b/custodia/httpd/authorizers.py
index d6fe7c7..3758f3c 100644
--- a/custodia/httpd/authorizers.py
+++ b/custodia/httpd/authorizers.py
@@ -40,14 +40,14 @@ class SimplePathAuthz(HTTPAuthorizer):
authz = authz[:-1]
if authz == path:
self._auditlog.svc_access(log.AUDIT_SVC_AUTHZ_PASS,
- request['creds']['pid'],
+ request['client_id'],
"SPA", path)
return True
while path != '':
if path in self.paths:
self._auditlog.svc_access(log.AUDIT_SVC_AUTHZ_PASS,
- request['creds']['pid'],
+ request['client_id'],
"SPA", path)
return True
if path == '/':
@@ -73,7 +73,7 @@ class UserNameSpace(HTTPAuthorizer):
if name is None:
# UserNameSpace requires a user ...
self._auditlog.svc_access(log.AUDIT_SVC_AUTHZ_FAIL,
- request.get('creds', {'pid': 0})['pid'],
+ request['client_id'],
"UNS(%s)" % self.path, path)
return False
@@ -81,12 +81,12 @@ class UserNameSpace(HTTPAuthorizer):
if not path.startswith(namespace):
# Not in the namespace
self._auditlog.svc_access(log.AUDIT_SVC_AUTHZ_FAIL,
- request.get('creds', {'pid': 0})['pid'],
+ request['client_id'],
"UNS(%s)" % self.path, path)
return False
request['default_namespace'] = name
self._auditlog.svc_access(log.AUDIT_SVC_AUTHZ_PASS,
- request.get('creds', {'pid': 0})['pid'],
+ request['client_id'],
"UNS(%s)" % self.path, path)
return True