From 8fdd11d4c661c392ad6b588c4021596a80a691c4 Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Mon, 5 Sep 2022 20:25:59 -0400 Subject: [PATCH] read the key into the auth object --- management/auth.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/management/auth.py b/management/auth.py index f46f5a05..b3ace3b7 100644 --- a/management/auth.py +++ b/management/auth.py @@ -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,