Skip to content

Commit 7d4b3de

Browse files
committed
Merge branch 'release_23.1' into release_23.2
2 parents a47c0df + 205e32f commit 7d4b3de

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/galaxy/authnz/psa_authnz.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,11 @@ def refresh(self, trans, user_authnz_token):
181181
else:
182182
log.debug("No `expires` or `expires_in` key found in token extra data, cannot refresh")
183183
return False
184-
if int(user_authnz_token.extra_data["auth_time"]) + int(expires) / 2 <= int(time.time()):
184+
if (
185+
int(user_authnz_token.extra_data["auth_time"]) + int(expires) / 2
186+
<= int(time.time())
187+
< int(user_authnz_token.extra_data["auth_time"]) + int(expires)
188+
):
185189
on_the_fly_config(trans.sa_session)
186190
if self.config["provider"] == "azure":
187191
self.refresh_azure(user_authnz_token)

0 commit comments

Comments
 (0)