From d444b559ec31dd163676ec6990b1a31ccc371b78 Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Tue, 23 Jan 2024 14:32:17 -0800 Subject: [PATCH] Add default values for test backwards-compat. --- neon_hana/auth/client_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neon_hana/auth/client_manager.py b/neon_hana/auth/client_manager.py index fdb84c6..1005a11 100644 --- a/neon_hana/auth/client_manager.py +++ b/neon_hana/auth/client_manager.py @@ -63,7 +63,8 @@ def _create_tokens(self, encode_data: dict) -> dict: "expiration": token_expiration} def check_auth_request(self, client_id: str, username: str, - password: Optional[str], origin_ip: str): + password: Optional[str] = None, + origin_ip: str = "127.0.0.1"): if client_id in self.authorized_clients: print(f"Using cached client: {self.authorized_clients[client_id]}") return self.authorized_clients[client_id]