From 0f8484bd60dafdd54afc6eefa8abc36e9a853206 Mon Sep 17 00:00:00 2001 From: clearml <> Date: Thu, 17 Oct 2024 00:37:57 +0300 Subject: [PATCH] Use api.auth.request_token_expiration_sec instead of api.auth.req_token_expiration_sec (same as agent, keep backwards compatibility) --- clearml/backend_api/session/session.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clearml/backend_api/session/session.py b/clearml/backend_api/session/session.py index e56d5129..b62673f7 100644 --- a/clearml/backend_api/session/session.py +++ b/clearml/backend_api/session/session.py @@ -198,9 +198,12 @@ class Session(TokenManager): raise ValueError("missing max request size") token_expiration_threshold_sec = self.config.get( - "auth.token_expiration_threshold_sec", 60 + "api.auth.token_expiration_threshold_sec", 60 + ) + req_token_expiration_sec = self.config.get( + "api.auth.request_token_expiration_sec", + self.config.get("api.auth.req_token_expiration_sec", None) ) - req_token_expiration_sec = self.config.get("api.auth.req_token_expiration_sec", None) self.__auth_token = None self._update_default_api_method() if ENV_AUTH_TOKEN.get():