summaryrefslogtreecommitdiffstats
path: root/custodia/httpd/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'custodia/httpd/server.py')
-rw-r--r--custodia/httpd/server.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/custodia/httpd/server.py b/custodia/httpd/server.py
index b1440ab..2608f3c 100644
--- a/custodia/httpd/server.py
+++ b/custodia/httpd/server.py
@@ -328,9 +328,9 @@ class HTTPRequestHandler(BaseHTTPRequestHandler):
elif valid is True:
valid_once = True
if valid_once is not True:
- self.server._auditlog.svc_access(log.AUDIT_SVC_AUTH_FAIL,
- request['client_id'], "MAIN",
- 'No auth')
+ self.server._auditlog.svc_access(self.__class__.__name__,
+ log.AUDIT_SVC_AUTH_FAIL,
+ request['client_id'], 'No auth')
raise HTTPError(403)
# auhz framework here
@@ -342,8 +342,9 @@ class HTTPRequestHandler(BaseHTTPRequestHandler):
if valid is not None:
break
if valid is not True:
- self.server._auditlog.svc_access(log.AUDIT_SVC_AUTHZ_FAIL,
- request['client_id'], "MAIN",
+ self.server._auditlog.svc_access(self.__class__.__name__,
+ log.AUDIT_SVC_AUTHZ_FAIL,
+ request['client_id'],
request.get('path', '/'))
raise HTTPError(403)