From d74ef21c99a9ece2140840939d24cc562b034960 Mon Sep 17 00:00:00 2001 From: Ilja Stakanovs Date: Thu, 11 Jul 2024 11:52:38 +0300 Subject: [PATCH 1/2] fix: passing timeout values to ConnectionManager --- CONTRIBUTING.md | 2 +- src/keycloak/openid_connection.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2978d02d..12a948ba 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -86,7 +86,7 @@ pre-commit install --install-hooks -t pre-commit -t pre-push -t commit-msg 1. Fork this repository, develop and test your changes 2. Make sure that your changes do not decrease the test coverage -3. Make sure you're commits follow the conventional commits +3. Make sure your commits follow the conventional commits 4. Submit a pull request ## How to release diff --git a/src/keycloak/openid_connection.py b/src/keycloak/openid_connection.py index 2200c427..2fba6639 100644 --- a/src/keycloak/openid_connection.py +++ b/src/keycloak/openid_connection.py @@ -119,7 +119,7 @@ def __init__( self.headers = {**self.headers, "Content-Type": "application/json"} super().__init__( - base_url=self.server_url, headers=self.headers, timeout=60, verify=self.verify + base_url=self.server_url, headers=self.headers, timeout=self.timeout, verify=self.verify ) @property From c7bfc35553c6fa601af0f31c7b17747aa6a39085 Mon Sep 17 00:00:00 2001 From: Ilja Stakanovs Date: Thu, 11 Jul 2024 12:21:37 +0300 Subject: [PATCH 2/2] fix linting --- src/keycloak/openid_connection.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/keycloak/openid_connection.py b/src/keycloak/openid_connection.py index 2fba6639..c6043560 100644 --- a/src/keycloak/openid_connection.py +++ b/src/keycloak/openid_connection.py @@ -119,7 +119,10 @@ def __init__( self.headers = {**self.headers, "Content-Type": "application/json"} super().__init__( - base_url=self.server_url, headers=self.headers, timeout=self.timeout, verify=self.verify + base_url=self.server_url, + headers=self.headers, + timeout=self.timeout, + verify=self.verify, ) @property