mirror of
https://github.com/clearml/clearml
synced 2025-01-31 00:56:57 +00:00
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:
parent
46019e7e3a
commit
0f8484bd60
@ -198,9 +198,12 @@ class Session(TokenManager):
|
|||||||
raise ValueError("missing max request size")
|
raise ValueError("missing max request size")
|
||||||
|
|
||||||
token_expiration_threshold_sec = self.config.get(
|
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.__auth_token = None
|
||||||
self._update_default_api_method()
|
self._update_default_api_method()
|
||||||
if ENV_AUTH_TOKEN.get():
|
if ENV_AUTH_TOKEN.get():
|
||||||
|
Loading…
Reference in New Issue
Block a user