From 576bfed91b850dad29c86ea0764331ad7127a83a Mon Sep 17 00:00:00 2001 From: CoolZeroNL <26223744+CoolZeroNL@users.noreply.github.com> Date: Wed, 29 Apr 2026 07:55:59 +0200 Subject: [PATCH] Update server.py making seconds_of_drift, subtract from self.access_grant["expires_in"] instead of appending. --- delinea/secrets/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delinea/secrets/server.py b/delinea/secrets/server.py index 0f26d4a..9114b19 100644 --- a/delinea/secrets/server.py +++ b/delinea/secrets/server.py @@ -272,7 +272,7 @@ def _refresh(self, seconds_of_drift=300): if ( hasattr(self, "access_grant") and self.access_grant_refreshed - + timedelta(seconds=self.access_grant["expires_in"] + seconds_of_drift) + + timedelta(seconds=self.access_grant["expires_in"] - seconds_of_drift) > datetime.now() ): return