Fixed wrong log messages

This commit is contained in:
Mauro Mugnaini 2021-01-19 18:00:39 +01:00
parent fc18dda68e
commit f5479d8f58
1 changed files with 2 additions and 3 deletions

View File

@ -180,12 +180,11 @@ public class SmartGearsPortalValve extends ValveBase {
JWTToken authToken = JWTCacheProxy.getInstance().getOIDCToken(user, sessionId);
if (authToken == null) {
_log.info("OIDC token is null also in cache proxy");
if (FORCE_LOGOUT_ON_MISSING_OIDC) {
_log.warn("OIDC token is null also in cache proxy, force redirecting to logut URI");
_log.warn("OIDC token is null in cache proxy, force redirecting to logut URI");
forceLogout(response);
} else {
_log.error("OIDC token is null also in cache proxy, cannot continue!");
_log.error("OIDC token is null in cache proxy, cannot continue!");
}
return;
}