Fixed returning errors for SAML
authordousti <dousti@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 19 Jun 2002 13:48:17 +0000 (13:48 +0000)
committerdousti <dousti@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 19 Jun 2002 13:48:17 +0000 (13:48 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@147 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/AASaml.java

index 6207509..e9a4975 100755 (executable)
@@ -123,7 +123,15 @@ public class AASaml {
 
     public void fail(HttpServletResponse resp, SAMLException exception)
        throws IOException{
-
-       binding.respond(resp, null, exception);
+       try{
+           SAMLResponse sResp = new SAMLResponse(reqID,
+                                                 /* recipient URL*/ null,
+                                                 /* sig */ null,
+                                                 /* ano assersion*/ null,
+                                                 exception);   
+           binding.respond(resp, sResp, null);
+       }catch(SAMLException se){
+           binding.respond(resp, null, exception);
+       }
     }
 }