From 90d1f0733edddfb2fbc5527713c3a8a012855612 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Fri, 8 Sep 2017 14:34:29 +0200 Subject: add additional log messages into demoOA --- .../gv/egovernment/moa/id/demoOA/servlet/pvp2/DemoApplication.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'id/oa/src/main/java/at/gv') diff --git a/id/oa/src/main/java/at/gv/egovernment/moa/id/demoOA/servlet/pvp2/DemoApplication.java b/id/oa/src/main/java/at/gv/egovernment/moa/id/demoOA/servlet/pvp2/DemoApplication.java index 31a3be7e2..93622f828 100644 --- a/id/oa/src/main/java/at/gv/egovernment/moa/id/demoOA/servlet/pvp2/DemoApplication.java +++ b/id/oa/src/main/java/at/gv/egovernment/moa/id/demoOA/servlet/pvp2/DemoApplication.java @@ -98,6 +98,7 @@ public class DemoApplication extends HttpServlet { ApplicationBean bean = new ApplicationBean(); + log.debug("Receive request on secure-area endpoint ..."); String method = request.getMethod(); HttpSession session = request.getSession(); @@ -113,6 +114,7 @@ public class DemoApplication extends HttpServlet { Response samlResponse = null; if (method.equals("GET")) { + log.debug("Find possible SAML2 Redirect-Binding response ..."); HTTPRedirectDeflateDecoder decode = new HTTPRedirectDeflateDecoder(new BasicParserPool()); BasicSAMLMessageContext messageContext = new BasicSAMLMessageContext(); @@ -140,8 +142,11 @@ public class DemoApplication extends HttpServlet { messageContext.setSecurityPolicyResolver(resolver1); decode.decode(messageContext); + + log.info("PVP2 Assertion with Redirect-Binding is valid"); - } else if (method.equals("POST")) { + } else if (method.equals("POST")) { + log.debug("Find possible SAML2 Post-Binding response ..."); //Decode with HttpPost Binding HTTPPostDecoder decode = new HTTPPostDecoder(new BasicParserPool()); BasicSAMLMessageContext messageContext = new BasicSAMLMessageContext(); -- cgit v1.2.3