aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'id/server/idserverlib/src/test')
-rw-r--r--id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/config/auth/data/AuthenticationDataBuilderTest.java196
-rw-r--r--id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/config/auth/data/DummyAuthConfig.java19
2 files changed, 211 insertions, 4 deletions
diff --git a/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/config/auth/data/AuthenticationDataBuilderTest.java b/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/config/auth/data/AuthenticationDataBuilderTest.java
index c3420d833..645cb601f 100644
--- a/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/config/auth/data/AuthenticationDataBuilderTest.java
+++ b/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/config/auth/data/AuthenticationDataBuilderTest.java
@@ -23,8 +23,129 @@ import at.gv.egovernment.moa.util.Base64Utils;
public class AuthenticationDataBuilderTest {
@Autowired private AuthenticationDataBuilder authBuilder;
+ @Autowired private DummyAuthConfig authConfig;
- private static final String DUMMY_IDL = "PHNhbWw6QXNzZXJ0aW9uIEFzc2VydGlvbklEPSJzenIuYm1pLmd2LmF0LUFzc2VydGlvbklEMTUyNzY2OTEwMDU5MTI3NDQiIElzc3VlSW5zdGFudD0iMjAxOC0wNS0zMFQxMDozMTo0MCswMTowMCIgSXNzdWVyPSJodHRwOi8vcG9ydGFsLmJtaS5ndi5hdC9yZWYvc3pyL2lzc3VlciIgTWFqb3JWZXJzaW9uPSIxIiBNaW5vclZlcnNpb249IjAiIHhtbG5zOnNhbWw9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjEuMDphc3NlcnRpb24iIHhtbG5zOnByPSJodHRwOi8vcmVmZXJlbmNlLmUtZ292ZXJubWVudC5ndi5hdC9uYW1lc3BhY2UvcGVyc29uZGF0YS8yMDAyMDIyOCMiIHhtbG5zOmRzaWc9Imh0dH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ml0aG09Imh0dHA6Ly93d3cudzMub3JnLzIw\r\n" +
+ "MDAvMDkveG1sZHNpZyNzaGExIi8+PGRzaWc6RGlnZXN0VmFsdWU+QXN4VHprWmRBWUM0U0s1cTh5\r\n" +
+ "c0pLVDd5ZHVRPTwvZHNpZzpEaWdlc3RWYWx1ZT48L2RzaWc6UmVmZXJlbmNlPjwvZHNpZzpNYW5p\r\n" +
+ "ZmVzdD48L2RzaWc6T2JqZWN0PjwvZHNpZzpTaWduYXR1cmU+PC9zYW1sOkFzc2VydGlvbj4=";
@Test
public void dummyTest() throws Exception {
@@ -34,7 +155,7 @@ public class AuthenticationDataBuilderTest {
@Test
- public void buildAuthDataWithIDLOnly() throws Exception {
+ public void buildAuthDataWithIDLOnly_1() throws Exception {
TestRequestImpl pendingReq = new TestRequestImpl();
DummyOAConfig oaParam = new DummyOAConfig();
oaParam.setHasBaseIdTransferRestriction(false);
@@ -43,7 +164,7 @@ public class AuthenticationDataBuilderTest {
pendingReq.setSpConfig(oaParam);
IAuthenticationSession session = new DummyAuthSession();
- session.setIdentityLink(new IdentityLinkAssertionParser(new ByteArrayInputStream(Base64Utils.decode(DUMMY_IDL, false))).parseIdentityLink());
+ session.setIdentityLink(new IdentityLinkAssertionParser(new ByteArrayInputStream(Base64Utils.decode(DUMMY_IDL_1, false))).parseIdentityLink());
pendingReq.setRawDataToTransaction(session.getKeyValueRepresentationFromAuthSession());
@@ -82,7 +203,76 @@ public class AuthenticationDataBuilderTest {
if (!foreignbPKs.get(0).getSecond().equals("wbpk+FN+195738a") && !(foreignbPKs.get(0).getFirst().isEmpty()))
throw new Exception("foreign bPK has wrong prefix");
+
+ System.out.println("Foreign bPK generated test. Successful");
+
+ }
+
+ @Test
+ public void buildAuthDataWithIDLOnly_2_without_flag() throws Exception {
+ buildAuthDataWithIDLOnly_2(null, "XXXŐz'gür", "XXXTüzekçi");
+ System.out.println("IDPParser and AuthDataBuilder without escape config --> Successfull");
+
+ }
+
+
+ @Test
+ public void buildAuthDataWithIDLOnly_2_with_flag_true() throws Exception {
+ buildAuthDataWithIDLOnly_2(true, "XXXŐz'gür", "XXXTüzekçi");
+ System.out.println("IDPParser and AuthDataBuilder with escape config 'true' --> Successfull");
+
+ }
+
+ @Test
+ public void buildAuthDataWithIDLOnly_2_with_flag_false() throws Exception {
+ buildAuthDataWithIDLOnly_2(false, "XXXŐz'gür", "XXXTüzekçi");
+ System.out.println("IDPParser and AuthDataBuilder with escape config 'false' --> Successfull");
+
+ }
+
+ private void buildAuthDataWithIDLOnly_2(Boolean idlEscaptionFlag, String givenName, String familyName) throws Exception {
+ IMOAAuthData authData = null;
+
+ try {
+ authConfig.setIsIDLEscapingEnabled(idlEscaptionFlag);
+
+ TestRequestImpl pendingReq = new TestRequestImpl();
+ DummyOAConfig oaParam = new DummyOAConfig();
+ oaParam.setHasBaseIdTransferRestriction(false);
+ oaParam.setTarget("urn:publicid:gv.at:cdid+ZP-MH");
+ pendingReq.setSpConfig(oaParam);
+ IAuthenticationSession session = new DummyAuthSession();
+ session.setIdentityLink(new IdentityLinkAssertionParser(new ByteArrayInputStream(Base64Utils.decode(DUMMY_IDL_2, false))).parseIdentityLink());
+ pendingReq.setRawDataToTransaction(session.getKeyValueRepresentationFromAuthSession());
+
+ authData = (IMOAAuthData) authBuilder.buildAuthenticationData(pendingReq);
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ throw e;
+
+ }
+
+ if (authData == null)
+ throw new Exception("AuthenticationData is 'null'");
+
+ if (!authData.getFamilyName().equals(familyName))
+ throw new Exception("Familyname wrong");
+
+ if (!authData.getGivenName().equals(givenName))
+ throw new Exception("GivenName wrong");
+
+ if (!authData.getFormatedDateOfBirth().equals("1973-06-04"))
+ throw new Exception("DateOfBirth wrong");
+
+
+ if (!authData.getIdentificationValue().equals("RUxHQVRlc3RQQjBYWFjFkHpnw7xyX1hYWFTDvHpla8OnaQ=="))
+ throw new Exception("baseId wrong");
+
+ if (!authData.getIdentificationType().equals("urn:publicid:gv.at:baseid"))
+ throw new Exception("baseIdType wrong");
+
}
}
diff --git a/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/config/auth/data/DummyAuthConfig.java b/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/config/auth/data/DummyAuthConfig.java
index befaa9bd7..c0ae06a82 100644
--- a/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/config/auth/data/DummyAuthConfig.java
+++ b/id/server/idserverlib/src/test/java/at/gv/egovernment/moa/id/config/auth/data/DummyAuthConfig.java
@@ -11,6 +11,7 @@ import java.util.Properties;
import at.gv.egiz.eaaf.core.api.idp.ISPConfiguration;
import at.gv.egiz.eaaf.core.exceptions.EAAFConfigurationException;
import at.gv.egiz.eaaf.core.exceptions.EAAFException;
+import at.gv.egiz.eaaf.core.impl.idp.auth.builder.AbstractAuthenticationDataBuilder;
import at.gv.egovernment.moa.id.auth.builder.AuthenticationDataBuilder;
import at.gv.egovernment.moa.id.auth.modules.internal.tasks.UserRestrictionTask;
import at.gv.egovernment.moa.id.commons.api.AuthConfiguration;
@@ -23,6 +24,8 @@ import at.gv.util.config.EgovUtilPropertiesConfiguration;
public class DummyAuthConfig implements AuthConfiguration {
+ private Boolean isIDLEscapingEnabled = null;
+
@Override
public String getRootConfigFileDir() {
// TODO Auto-generated method stub
@@ -417,7 +420,15 @@ public class DummyAuthConfig implements AuthConfiguration {
@Override
public boolean getBasicMOAIDConfigurationBoolean(String key, boolean defaultValue) {
- // TODO Auto-generated method stub
+ if (AbstractAuthenticationDataBuilder.CONFIG_PROP_ENABLE_IDL_ATTRIBUTE_ESCAPEING.equals(key)) {
+ if (isIDLEscapingEnabled == null)
+ return defaultValue;
+ else
+ return isIDLEscapingEnabled;
+
+ }
+
+
return false;
}
@@ -457,4 +468,10 @@ public class DummyAuthConfig implements AuthConfiguration {
return null;
}
+ public void setIsIDLEscapingEnabled(Boolean isIDLEscapingEnabled) {
+ this.isIDLEscapingEnabled = isIDLEscapingEnabled;
+ }
+
+
+
}