diff --git a/src/main/java/org/gcube/portal/oidc/lr62/SessionDestroyAction.java b/src/main/java/org/gcube/portal/oidc/lr62/SessionDestroyAction.java index 2b437ba..a657b07 100644 --- a/src/main/java/org/gcube/portal/oidc/lr62/SessionDestroyAction.java +++ b/src/main/java/org/gcube/portal/oidc/lr62/SessionDestroyAction.java @@ -1,7 +1,6 @@ package org.gcube.portal.oidc.lr62; import java.io.IOException; -import java.util.List; import javax.servlet.http.HttpSession; @@ -34,13 +33,10 @@ public class SessionDestroyAction extends SessionAction { + user.getScreenName()); } try { - List tokenAud = token.getAud(); - tokenAud.remove(JWTToken.ACCOUNT_RESOURCE); - String clientId = tokenAud.iterator().next(); if (log.isDebugEnabled()) { - log.debug("Performing logout by using client id: " + clientId); + log.debug("Performing the OIDC backchannel logout"); } - OpenIdConnectRESTHelper.logout(configuration.getLogoutURL(), clientId, token); + OpenIdConnectRESTHelper.logout(configuration.getLogoutURL(), token); } catch (IOException e) { throw new ActionException("Performing logut on OIDC server", e); }