mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
Merge branch 'release_24.0' into release_24.1
This commit is contained in:
@@ -187,7 +187,11 @@ class PSAAuthnz(IdentityProvider):
|
||||
else:
|
||||
log.debug("No `expires` or `expires_in` key found in token extra data, cannot refresh")
|
||||
return False
|
||||
if int(user_authnz_token.extra_data["auth_time"]) + int(expires) / 2 <= int(time.time()):
|
||||
if (
|
||||
int(user_authnz_token.extra_data["auth_time"]) + int(expires) / 2
|
||||
<= int(time.time())
|
||||
< int(user_authnz_token.extra_data["auth_time"]) + int(expires)
|
||||
):
|
||||
on_the_fly_config(trans.sa_session)
|
||||
if self.config["provider"] == "azure":
|
||||
self.refresh_azure(user_authnz_token)
|
||||
|
||||
Reference in New Issue
Block a user