use of org.pentaho.platform.proxy.impl.ProxyException in project pentaho-engineering-samples by pentaho.
the class PentahoSamlLogoutFilter method processLogout.
@Override
public void processLogout(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {
if (requiresLogout(request, response)) {
if (isUseGlobalLogoutStrategy() && !idpContainsGlobalLogoutEndpoint(request, response)) {
logger.error("User misconfiguration: SAML's 'use.global.logout.strategy' is set to 'true', but the selected " + "IdP does not declare a Global Logout endpoint. We will switch to a 'Local logout' behaviour.");
setUseGlobalLogoutStrategy(false);
}
try {
Authentication auth = Utils.getAuthenticationFromRequest(request, requireProxyWrapping);
if (auth != null) {
SecurityContextHolder.getContext().setAuthentication(auth);
}
} catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException | ProxyException e) {
logger.error(e.getMessage(), e);
}
}
super.processLogout(request, response, chain);
}
Aggregations