From 34f1ae730c07d029449d4cb67d8f727cff5f8b8e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 26 Nov 2019 17:19:03 +0000 Subject: [PATCH] Authorization debug --- daemon.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon.py b/daemon.py index 14a74c76..f1650ff3 100644 --- a/daemon.py +++ b/daemon.py @@ -931,6 +931,9 @@ class PubServer(BaseHTTPRequestHandler): return True if self.path.endswith('/'+nickname): return True + print('AUTH: nickname '+nickname+' did not match') + print('AUTH: epicyon cookie authorization failed') + print('AUTH: Header cookie was not authorized') return False # basic auth if self.headers.get('Authorization'): @@ -938,6 +941,7 @@ class PubServer(BaseHTTPRequestHandler): self.headers['Authorization'], \ self.server.debug): return True + print('AUTH: Basic auth did not authorize') return False def _clearLoginDetails(self,nickname: str):