aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-06-16 10:54:21 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-06-16 10:54:21 +0200
commit33e96ff52c829ea0f7a3c64ab3c7c495819c6039 (patch)
tree77e0e16948bb2ff499db2361bd564ef8496168fb /id/server/idserverlib
parent32bf99d2652cc9a658aaa4aa3c16950e0d0b3a9f (diff)
downloadmoa-id-spss-33e96ff52c829ea0f7a3c64ab3c7c495819c6039.tar.gz
moa-id-spss-33e96ff52c829ea0f7a3c64ab3c7c495819c6039.tar.bz2
moa-id-spss-33e96ff52c829ea0f7a3c64ab3c7c495819c6039.zip
add SAML response debug message
Diffstat (limited to 'id/server/idserverlib')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java
index 93ac84381..a82a51d07 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java
@@ -121,11 +121,15 @@ public class PEPSConnectorServlet extends AuthServlet {
byte[] decSamlToken;
try {
decSamlToken = PEPSUtil.decodeSAMLToken(request.getParameter("SAMLResponse"));
+ Logger.debug("SAMLResponse: " + new String(decSamlToken));
+
} catch(NullPointerException e) {
Logger.error("Unable to retrieve STORK Response", e);
throw new MOAIDException("stork.04", null);
}
+
+
//Get SAMLEngine instance
STORKSAMLEngine engine = STORKSAMLEngine.getInstance("outgoing");
@@ -211,7 +215,7 @@ public class PEPSConnectorServlet extends AuthServlet {
}
Logger.debug("Found a preceeding STORK AuthnRequest to this MOA session: " + moaSessionID);
-
+
////////////// incorporate gender from parameters if not in stork response
IPersonalAttributeList attributeList = authnResponse.getPersonalAttributeList();