Authorization debug

main
Bob Mottram 2019-11-26 17:19:03 +00:00
parent 5acc604b4f
commit 34f1ae730c
1 changed files with 4 additions and 0 deletions

View File

@ -931,6 +931,9 @@ class PubServer(BaseHTTPRequestHandler):
return True return True
if self.path.endswith('/'+nickname): if self.path.endswith('/'+nickname):
return True return True
print('AUTH: nickname '+nickname+' did not match')
print('AUTH: epicyon cookie authorization failed')
print('AUTH: Header cookie was not authorized')
return False return False
# basic auth # basic auth
if self.headers.get('Authorization'): if self.headers.get('Authorization'):
@ -938,6 +941,7 @@ class PubServer(BaseHTTPRequestHandler):
self.headers['Authorization'], \ self.headers['Authorization'], \
self.server.debug): self.server.debug):
return True return True
print('AUTH: Basic auth did not authorize')
return False return False
def _clearLoginDetails(self,nickname: str): def _clearLoginDetails(self,nickname: str):