read the key into the auth object

This commit is contained in:
Steve Hay committed 2022-09-05 20:25:59 -04:00
1 parent ec1641e6a5
commit 8fdd11d4c6
1 file changed
+2
+2
View File
@@ -36,6 +36,8 @@ class AuthService:
# with create_file_with_mode(self.key_path, 0o640) as key_file:
# key_file.write(self.key + '\n')
with open(self.key_path, 'r') as file:
self.key = file.read()
def authenticate(self, request, env, login_only=False, logout=False):
"""Test if the HTTP Authorization header's username matches the system key, a session key,