Skip to content

Commit 4e1acd0

Browse files
committed
Merge branch 'release_24.0' into release_24.1
2 parents 9a0d482 + faa7442 commit 4e1acd0

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
@@ -187,7 +187,11 @@ def refresh(self, trans, user_authnz_token):
187187
else:
188188
log.debug("No `expires` or `expires_in` key found in token extra data, cannot refresh")
189189
return False
190-
if int(user_authnz_token.extra_data["auth_time"]) + int(expires) / 2 <= int(time.time()):
190+
if (
191+
int(user_authnz_token.extra_data["auth_time"]) + int(expires) / 2
192+
<= int(time.time())
193+
< int(user_authnz_token.extra_data["auth_time"]) + int(expires)
194+
):
191195
on_the_fly_config(trans.sa_session)
192196
if self.config["provider"] == "azure":
193197
self.refresh_azure(user_authnz_token)

0 commit comments

Comments
 (0)