public void handleRequestType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException { HTTPContext httpContext = (HTTPContext) request.getContext(); HttpServletRequest httpServletRequest = httpContext.getRequest(); HttpSession session = httpServletRequest.getSession(false); String relayState = httpContext.getRequest().getParameter(GeneralConstants.RELAY_STATE); LogoutRequestType logOutRequest = (LogoutRequestType) request.getSAML2Object(); checkDestination(logOutRequest.getDestination(), getProviderconfig().getIdentityURL()); String issuer = logOutRequest.getIssuer().getValue(); try { String originalIssuer = (relayState == null) ? issuer : relayState; if (getIdentityServer(session.getServletContext()) == null) throw logger.samlHandlerIdentityServerNotFoundError(); if (isBackChannelLogout()) { performBackChannelLogout(request, originalIssuer); } else { performFrontChannelLogout(request, response, logOutRequest, originalIssuer, relayState); } } catch (ParserConfigurationException pe) { throw logger.processingError(pe); } catch (ConfigurationException pe) { throw logger.processingError(pe); } catch (ParsingException e) { throw logger.processingError(e); } return; }
public void handleRequestType(SAML2HandlerRequest request, SAML2HandlerResponse response) throws ProcessingException { HTTPContext httpContext = (HTTPContext) request.getContext(); HttpServletRequest httpServletRequest = httpContext.getRequest(); HttpSession session = httpServletRequest.getSession(false); String relayState = httpContext.getRequest().getParameter(GeneralConstants.RELAY_STATE); LogoutRequestType logOutRequest = (LogoutRequestType) request.getSAML2Object(); checkDestination(logOutRequest.getDestination(), getProviderconfig().getIdentityURL()); String issuer = logOutRequest.getIssuer().getValue(); try { String originalIssuer = (relayState == null) ? issuer : relayState; if (getIdentityServer(session.getServletContext()) == null) throw logger.samlHandlerIdentityServerNotFoundError(); if (isBackChannelLogout()) { performBackChannelLogout(request, originalIssuer); } else { performFrontChannelLogout(request, response, logOutRequest, originalIssuer, relayState); } } catch (ParserConfigurationException pe) { throw logger.processingError(pe); } catch (ConfigurationException pe) { throw logger.processingError(pe); } catch (ParsingException e) { throw logger.processingError(e); } return; }
.toString()); URI destination = logOutRequest.getDestination(); if (destination != null)
.toString()); URI destination = logOutRequest.getDestination(); if (destination != null)
checkDestination(logOutRequest.getDestination(), spConfiguration.getServiceURL());
checkDestination(logOutRequest.getDestination(), spConfiguration.getServiceURL());
StaxUtil.writeAttribute(writer, JBossSAMLConstants.ISSUE_INSTANT.get(), logOutRequest.getIssueInstant().toString()); URI destination = logOutRequest.getDestination(); if (destination != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.DESTINATION.get(), destination.toASCIIString());
StaxUtil.writeAttribute(writer, JBossSAMLConstants.ISSUE_INSTANT.get(), logOutRequest.getIssueInstant().toString()); URI destination = logOutRequest.getDestination(); if (destination != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.DESTINATION.get(), destination.toASCIIString());
StaxUtil.writeAttribute(writer, JBossSAMLConstants.ISSUE_INSTANT.get(), logOutRequest.getIssueInstant().toString()); URI destination = logOutRequest.getDestination(); if (destination != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.DESTINATION.get(), destination.toASCIIString());