aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--id/oa/src/main/java/at/gv/egovernment/moa/id/demoOA/servlet/pvp2/DemoApplication.java7
1 files changed, 6 insertions, 1 deletions
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<Response, ?, ?> messageContext = new BasicSAMLMessageContext<Response, SAMLObject, SAMLObject>();
@@ -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<Response, ?, ?> messageContext = new BasicSAMLMessageContext<Response, SAMLObject, SAMLObject>();