Author: anil.saldhana(a)jboss.com
Date: 2011-07-06 21:03:42 -0400 (Wed, 06 Jul 2011)
New Revision: 1073
Modified:
federation/trunk/picketlink-bindings/src/main/java/org/picketlink/identity/federation/bindings/tomcat/idp/IDPWebBrowserSSOValve.java
Log:
use dispatch to hosted
Modified:
federation/trunk/picketlink-bindings/src/main/java/org/picketlink/identity/federation/bindings/tomcat/idp/IDPWebBrowserSSOValve.java
===================================================================
---
federation/trunk/picketlink-bindings/src/main/java/org/picketlink/identity/federation/bindings/tomcat/idp/IDPWebBrowserSSOValve.java 2011-07-06
18:33:55 UTC (rev 1072)
+++
federation/trunk/picketlink-bindings/src/main/java/org/picketlink/identity/federation/bindings/tomcat/idp/IDPWebBrowserSSOValve.java 2011-07-07
01:03:42 UTC (rev 1073)
@@ -40,6 +40,7 @@
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
+import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletResponse;
import javax.xml.crypto.dsig.CanonicalizationMethod;
@@ -366,7 +367,18 @@
}
else
{
- getNext().invoke(request, response);
+ if (trace)
+ log.trace("SAML 1.1::Proceeding to IDP index page");
+ RequestDispatcher dispatch =
context.getServletContext().getRequestDispatcher("/hosted/");
+ try
+ {
+ dispatch.forward(request, response);
+ }
+ catch (Exception e)
+ {
+ //JBAS5.1 and 6 quirkiness
+ dispatch.forward(request.getRequest(), response);
+ }
}
/*log.error("No SAML Request or Response Message");
if (trace)
Show replies by date