aboutsummaryrefslogtreecommitdiff
path: root/id/server
diff options
context:
space:
mode:
Diffstat (limited to 'id/server')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AuthenticationRequest.java26
1 files changed, 23 insertions, 3 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AuthenticationRequest.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AuthenticationRequest.java
index 55d5f3626..2debe7452 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AuthenticationRequest.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/stork2/AuthenticationRequest.java
@@ -97,11 +97,30 @@ public class AuthenticationRequest implements IAction {
authnResponse.setCountry("AT");
+ IPersonalAttributeList attrLst = ((STORKAuthnRequestDEL)req).getStorkAuthnRequest().getPersonalAttributeList();
+ Logger.info("Found number of authnreq personal attributes: " + attrLst.size());
+
+ try {
+ for (PersonalAttribute personalAttribute : attrLst) {
+ Logger.info("Personal authnreq attribute found: " + personalAttribute.getName() + " status: " + personalAttribute.getStatus() + " isrequired: " + personalAttribute.isRequired() + " type: " + personalAttribute.getType());
+
+ if (personalAttribute.getValue().size() > 0) {
+ for (String value : personalAttribute.getValue()) {
+ Logger.info(" Value found: " + value);
+ }
+ }
+ }
+ } catch (Exception e) {
+ Logger.error("Exception, attributes: " + e.getMessage());
+ }
+
+
try {
+ IPersonalAttributeList moaAttrList = moasession.getStorkAttributes();
+ Logger.info("Found number of moa personal attributes: " + moasession.getStorkAttributes().size());
- IPersonalAttributeList moaAttrList = moasession.getStorkAttributes();
- for (PersonalAttribute personalAttribute : moaAttrList) {
+ for (PersonalAttribute personalAttribute : moaAttrList) {
Logger.info("Personal attribute found: " + personalAttribute.getName() + personalAttribute.getStatus());
if (personalAttribute.getValue().size() > 0) {
for (String value : personalAttribute.getValue()) {
@@ -142,7 +161,8 @@ public class AuthenticationRequest implements IAction {
Logger.debug("authn status code value: " + statusCodeValue);
try {
- Logger.debug("authn saml:" + IOUtils.toString(authnResponse.getTokenSaml()));
+ Logger.debug("authn saml plain:" + authnResponse.getTokenSaml());
+ Logger.debug("authn saml string:" + new String(authnResponse.getTokenSaml())); // radi
Logger.debug("authn saml encodedx: " + new String(org.bouncycastle.util.encoders.Base64.encode(IOUtils.toString(authnResponse.getTokenSaml()).getBytes())));
} catch (IOException e) {