From e895a5c95b56652da5327d508eee95e1d730d55d Mon Sep 17 00:00:00 2001 From: Gert Dewit Date: Sun, 26 Mar 2023 14:18:11 +0200 Subject: [PATCH] refreshed token is ignored --- .../rest/security/oauth2/OAuth2SessionServiceDelegate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/rest/impl/src/main/java/it/geosolutions/geostore/services/rest/security/oauth2/OAuth2SessionServiceDelegate.java b/src/modules/rest/impl/src/main/java/it/geosolutions/geostore/services/rest/security/oauth2/OAuth2SessionServiceDelegate.java index 95e94334..22ff06d5 100644 --- a/src/modules/rest/impl/src/main/java/it/geosolutions/geostore/services/rest/security/oauth2/OAuth2SessionServiceDelegate.java +++ b/src/modules/rest/impl/src/main/java/it/geosolutions/geostore/services/rest/security/oauth2/OAuth2SessionServiceDelegate.java @@ -115,7 +115,7 @@ public SessionToken refresh(String refreshToken, String accessToken) { if ((expiresIn == null || fiveMinutesFromNow.after(expiresIn)) && refreshToken != null) { if (LOGGER.isDebugEnabled()) LOGGER.info("Going to refresh the token."); - doRefresh(refreshToken, accessToken, configuration); + sessionToken = doRefresh(refreshToken, accessToken, configuration); } if (sessionToken == null) sessionToken = sessionToken(accessToken, refreshToken, currentToken.getExpiration());