Fixed a bug in the Shib SSO handler.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 14 Mar 2005 19:47:41 +0000 (19:47 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 14 Mar 2005 19:47:41 +0000 (19:47 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1292 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/provider/ShibbolethV1SSOHandler.java

index 65498ac..785e5f5 100644 (file)
@@ -82,13 +82,17 @@ public class ShibbolethV1SSOHandler implements IdPProtocolHandler {
        public SAMLResponse processRequest(HttpServletRequest request, HttpServletResponse response,
                        SAMLRequest samlRequest, IdPProtocolSupport support) throws SAMLException, ServletException, IOException {
 
-               //TODO attribute push?
+               // TODO attribute push?
 
-               if (request != null) {
+               if (request == null) {
                        log.error("Protocol Handler received a SAML Request, but is unable to handle it.");
                        throw new SAMLException(SAMLException.RESPONDER, "General error processing request.");
                }
-               
+
+               // Set attributes that are needed by the jsp
+               request.setAttribute("shire", request.getParameter("shire"));
+               request.setAttribute("target", request.getParameter("target"));
+
                try {
                        // Ensure that we have the required data from the servlet container
                        IdPProtocolSupport.validateEngineData(request);