From b3a0302041d08ba8360d96216b6da67580850717 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Wed, 27 Sep 2023 14:07:56 +0200 Subject: feat(eidas): refactoring to eIDAS node v2.7 --- .../src/main/resources/application.properties | 13 ++++++ .../src/main/resources/environmentContext.xml | 49 ++++++++++++++++++++++ .../proxy/test/FullStartUpAndProcessTest.java | 7 +--- 3 files changed, 64 insertions(+), 5 deletions(-) create mode 100644 ms_specific_proxyservice/src/main/resources/environmentContext.xml (limited to 'ms_specific_proxyservice') diff --git a/ms_specific_proxyservice/src/main/resources/application.properties b/ms_specific_proxyservice/src/main/resources/application.properties index cb55fb2c..d6918a97 100644 --- a/ms_specific_proxyservice/src/main/resources/application.properties +++ b/ms_specific_proxyservice/src/main/resources/application.properties @@ -69,6 +69,19 @@ eidas.ms.auth.eIDAS.node_v2.proxy.entityId=ownSpecificProxy eidas.ms.auth.eIDAS.node_v2.proxy.forward.errors=false eidas.ms.auth.eIDAS.node_v2.forward.method=POST + + # TODO change namespaces if required +lightToken.proxyservice.request.issuer.name=specificCommunicationDefinitionConnectorRequest +lightToken.proxyservice.request.node.id=specificConnector +lightToken.proxyservice.request.secret=mySecretConnectorRequest +lightToken.proxyservice.request.algorithm=SHA-256 +lightToken.proxyservice.response.issuer.name=specificCommunicationDefinitionConnectorResponse +lightToken.proxyservice.response.node.id=specificConnector +lightToken.proxyservice.response.secret=mySecretConnectorResponse +lightToken.proxyservice.response.algorithm=SHA-256 +incoming.lightRequest.max.number.characters=65535 + + # Mandate configuration eidas.ms.auth.eIDAS.proxy.mandates.enabled=true eidas.ms.auth.eIDAS.proxy.mandates.profiles.natural.default=GeneralvollmachtBilateral diff --git a/ms_specific_proxyservice/src/main/resources/environmentContext.xml b/ms_specific_proxyservice/src/main/resources/environmentContext.xml new file mode 100644 index 00000000..ccfab8f5 --- /dev/null +++ b/ms_specific_proxyservice/src/main/resources/environmentContext.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ms_specific_proxyservice/src/test/java/at/asitplus/eidas/specific/proxy/test/FullStartUpAndProcessTest.java b/ms_specific_proxyservice/src/test/java/at/asitplus/eidas/specific/proxy/test/FullStartUpAndProcessTest.java index 82103095..c86fbd9b 100644 --- a/ms_specific_proxyservice/src/test/java/at/asitplus/eidas/specific/proxy/test/FullStartUpAndProcessTest.java +++ b/ms_specific_proxyservice/src/test/java/at/asitplus/eidas/specific/proxy/test/FullStartUpAndProcessTest.java @@ -79,7 +79,6 @@ import eu.eidas.auth.commons.attribute.ImmutableAttributeMap; import eu.eidas.auth.commons.light.ILightResponse; import eu.eidas.auth.commons.light.impl.LightRequest; import eu.eidas.auth.commons.tx.BinaryLightToken; -import eu.eidas.specificcommunication.SpecificCommunicationDefinitionBeanNames; import eu.eidas.specificcommunication.protocol.SpecificCommunicationService; import lombok.SneakyThrows; import net.shibboleth.utilities.java.support.component.ComponentInitializationException; @@ -131,8 +130,6 @@ public class FullStartUpAndProcessTest { //eIDAS Ref. Impl. properties System.setProperty("EIDAS_CONFIG_REPOSITORY", current.substring("file:".length()) + "../basicConfig/eIDAS/"); - System.setProperty("SPECIFIC_CONNECTOR_CONFIG_REPOSITORY", current.substring("file:".length()) - + "../basicConfig/eIDAS/"); System.setProperty("SPECIFIC_PROXY_SERVICE_CONFIG_REPOSITORY", current.substring("file:".length()) + "../basicConfig/eIDAS/"); @@ -339,7 +336,7 @@ public class FullStartUpAndProcessTest { private void validateEidasLightResponse(String eidasNodeRespToken) { final SpecificCommunicationService springManagedSpecificConnectorCommunicationService = (SpecificCommunicationService) wac.getBean( - SpecificCommunicationDefinitionBeanNames.SPECIFIC_PROXYSERVICE_COMMUNICATION_SERVICE.toString()); + EidasConstants.SPECIFIC_PROXYSERVICE_COMMUNICATION_SERVICE); ILightResponse lightResp = springManagedSpecificConnectorCommunicationService.getAndRemoveResponse(eidasNodeRespToken, attrRegistry.getCoreAttributeRegistry().getAttributes()); @@ -469,7 +466,7 @@ public class FullStartUpAndProcessTest { final SpecificCommunicationService springManagedSpecificConnectorCommunicationService = (SpecificCommunicationService) wac.getBean( - SpecificCommunicationDefinitionBeanNames.SPECIFIC_PROXYSERVICE_COMMUNICATION_SERVICE.toString()); + EidasConstants.SPECIFIC_PROXYSERVICE_COMMUNICATION_SERVICE.toString()); BinaryLightToken token = springManagedSpecificConnectorCommunicationService.putRequest(authnReqBuilder.build()); proxyHttpReq.addParameter(EidasParameterKeys.TOKEN.toString(), Base64Utils.encodeToString(token.getTokenBytes())); -- cgit v1.2.3