From 7bdd54697b41703245accc4618a5fdcd15bbb906 Mon Sep 17 00:00:00 2001 From: Ilja S <48449461+cnvrtr@users.noreply.github.com> Date: Thu, 11 Jul 2024 23:37:26 +0300 Subject: [PATCH] fix: passing timeout values to ConnectionManager (#578) * fix: passing timeout values to ConnectionManager * fix linting --------- Co-authored-by: Ilja Stakanovs --- CONTRIBUTING.md | 2 +- src/keycloak/openid_connection.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2978d02..12a948b 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 2200c42..c604356 100644 --- a/src/keycloak/openid_connection.py +++ b/src/keycloak/openid_connection.py @@ -119,7 +119,10 @@ class KeycloakOpenIDConnection(ConnectionManager): 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