[Carbon-commits] [Carbon-Components] svn commit r68885 - trunk/carbon/components/identity/org.wso2.carbon.identity.sso.saml.ui/src/main/java/org/wso2/carbon/identity/sso/saml/ui
thilinab at wso2.com
thilinab at wso2.com
Wed Jun 30 09:24:17 PDT 2010
Author: thilinab
Date: Wed Jun 30 09:24:16 2010
New Revision: 68885
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=68885
Log:
modifications to the logout request handling logic.
Modified:
trunk/carbon/components/identity/org.wso2.carbon.identity.sso.saml.ui/src/main/java/org/wso2/carbon/identity/sso/saml/ui/SAMLSSOProvider.java
Modified: trunk/carbon/components/identity/org.wso2.carbon.identity.sso.saml.ui/src/main/java/org/wso2/carbon/identity/sso/saml/ui/SAMLSSOProvider.java
URL: http://wso2.org/svn/browse/wso2/trunk/carbon/components/identity/org.wso2.carbon.identity.sso.saml.ui/src/main/java/org/wso2/carbon/identity/sso/saml/ui/SAMLSSOProvider.java?rev=68885&r1=68884&r2=68885&view=diff
==============================================================================
--- trunk/carbon/components/identity/org.wso2.carbon.identity.sso.saml.ui/src/main/java/org/wso2/carbon/identity/sso/saml/ui/SAMLSSOProvider.java (original)
+++ trunk/carbon/components/identity/org.wso2.carbon.identity.sso.saml.ui/src/main/java/org/wso2/carbon/identity/sso/saml/ui/SAMLSSOProvider.java Wed Jun 30 09:24:16 2010
@@ -78,23 +78,23 @@
httpServletResponse.sendRedirect(getAdminConsoleURL(httpServletRequest) + "sso-saml/redirect.jsp");
}
} else {
- if (signInRespDTO.getValid()) {
+// if (signInRespDTO.getValid()) {
SingleLogoutRequestDTO[] logoutRequests = signInRespDTO.getLogoutRespDTO();
- if (logoutRequests != null && logoutRequests.length > 0) {
- LogoutRequestSender requestSender = new LogoutRequestSender();
- requestSender.sendLogoutRequests(logoutRequests);
- }
+// if (logoutRequests != null && logoutRequests.length > 0) {
+// LogoutRequestSender requestSender = new LogoutRequestSender();
+// requestSender.sendLogoutRequests(logoutRequests);
+// }
session.setAttribute(SAMLSSOProviderConstants.SAML_RESP, signInRespDTO.getLogoutResponse());
session.setAttribute(SAMLSSOProviderConstants.TARGET_ASSRTN_CONSUMER_URL,
signInRespDTO.getAssertionConsumerURL());
session.setAttribute(SAMLSSOProviderConstants.kEEP_SESSION_ALIVE, false);
httpServletResponse.sendRedirect(getAdminConsoleURL(httpServletRequest) + "sso-saml/redirect.jsp");
- } else {
- session.setAttribute(SAMLSSOProviderConstants.STATUS, "Error parsing Logout request.");
- session.setAttribute(SAMLSSOProviderConstants.STATUS_MSG, "We are unable to parse your " +
- "logout request. Make sure it confirms to the SAML 2.0 Single Logout Specification.");
- httpServletResponse.sendRedirect(getAdminConsoleURL(httpServletRequest) + "sso-saml/notification_page.jsp");
- }
+// } else {
+// session.setAttribute(SAMLSSOProviderConstants.STATUS, "Error parsing Logout request.");
+// session.setAttribute(SAMLSSOProviderConstants.STATUS_MSG, "We are unable to parse your " +
+// "logout request. Make sure it confirms to the SAML 2.0 Single Logout Specification.");
+// httpServletResponse.sendRedirect(getAdminConsoleURL(httpServletRequest) + "sso-saml/notification_page.jsp");
+// }
}
} else {
SAMLSSOReqValidationResponseDTO validationRespDTO = ssoServiceClient.doSingleLogout(session.getId());
More information about the Carbon-commits
mailing list