Use api.auth.request_token_expiration_sec instead of api.auth.req_token_expiration_sec (same as agent, keep backwards compatibility)

This commit is contained in:
clearml 2024-10-17 00:37:57 +03:00
parent 46019e7e3a
commit 0f8484bd60

View File

@ -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():