summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/edu/kit/scc/dei/ecplean/ECPAuthenticator.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/edu/kit/scc/dei/ecplean/ECPAuthenticator.java b/src/main/java/edu/kit/scc/dei/ecplean/ECPAuthenticator.java
index 9422ea6..2d90147 100644
--- a/src/main/java/edu/kit/scc/dei/ecplean/ECPAuthenticator.java
+++ b/src/main/java/edu/kit/scc/dei/ecplean/ECPAuthenticator.java
@@ -134,12 +134,15 @@ public class ECPAuthenticator extends ECPAuthenticatorBase {
httpPost.setEntity(new StringEntity(documentToString(idpResponse)));
httpResponse = client.execute(httpPost, ctx);
logger.info("Asserting resulted in " + httpResponse.getReasonPhrase());
- httpPost.reset();
} catch (TransformerException | IOException e) {
logger.debug("Could not post assertion back to SP");
throw new ECPAuthenticationException(e);
}
-
+ try {
+ httpPost.reset();
+ } catch (Exception e) {
+ }
+
logger.info("Requesting original URL");
httpGet = new HttpGet(authInfo.getSpUrl().toString());
try {