From 695c696f3812c6ed68cd5792d95f38a109629617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Tue, 24 Oct 2023 14:02:48 +0200 Subject: [PATCH] The expiration is for the access token, not for the refresh token --- geoportal/c2cgeoportal_geoportal/lib/oauth2.py | 1 - 1 file changed, 1 deletion(-) diff --git a/geoportal/c2cgeoportal_geoportal/lib/oauth2.py b/geoportal/c2cgeoportal_geoportal/lib/oauth2.py index 8f85b93634..6a3e4e3bea 100644 --- a/geoportal/c2cgeoportal_geoportal/lib/oauth2.py +++ b/geoportal/c2cgeoportal_geoportal/lib/oauth2.py @@ -914,7 +914,6 @@ def validate_refresh_token( DBSession.query(static.OAuth2BearerToken) .filter(static.OAuth2BearerToken.refresh_token == refresh_token) .filter(static.OAuth2BearerToken.client_id == request.client.id) - .filter(static.OAuth2BearerToken.expire_at > datetime.now()) .one_or_none() )