Commit 4e1acd06 authored by Martin Cech's avatar Martin Cech
Browse files

Merge branch 'release_24.0' into release_24.1

parents 9a0d482f faa7442e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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)