aboutsummaryrefslogtreecommitdiff
path: root/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas
diff options
context:
space:
mode:
authorThomas <>2023-06-07 10:20:28 +0200
committerThomas <>2023-06-07 10:20:28 +0200
commit1151b7461c3207331743b7ee4f985e2d3e3c7c1b (patch)
treee4d46c0e63739a53fcfa73e063da2d5810795556 /modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas
parent26c31db942450519ba0ea5eac0c301a88841965c (diff)
downloadNational_eIDAS_Gateway-1151b7461c3207331743b7ee4f985e2d3e3c7c1b.tar.gz
National_eIDAS_Gateway-1151b7461c3207331743b7ee4f985e2d3e3c7c1b.tar.bz2
National_eIDAS_Gateway-1151b7461c3207331743b7ee4f985e2d3e3c7c1b.zip
chore(ernp): switch to ERnP REST API version 2.0.3
Remove configuration property to disable new API elements
Diffstat (limited to 'modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas')
-rw-r--r--modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/Constants.java3
-rw-r--r--modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/ernp/ErnpRestClient.java12
2 files changed, 4 insertions, 11 deletions
diff --git a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/Constants.java b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/Constants.java
index 778739e2..1fcebe07 100644
--- a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/Constants.java
+++ b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/Constants.java
@@ -223,10 +223,7 @@ public class Constants {
+ ".req.organisation.behoerdennr";
public static final String CONIG_PROPS_EIDAS_ERNPCLIENT_API_ADDPERSON_GENDER = CONIG_PROPS_EIDAS_ERNPCLIENT
+ ".api.person.add.gender";
- public static final String CONIG_PROPS_EIDAS_ERNPCLIENT_NEW_API_FEATURES = CONIG_PROPS_EIDAS_ERNPCLIENT
- + ".api.features.2023";
-
// SZR Client configuration properties
public static final String CONIG_PROPS_EIDAS_SZRCLIENT =
EidasConstants.CONIG_PROPS_EIDAS_PREFIX + ".szrclient";
diff --git a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/ernp/ErnpRestClient.java b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/ernp/ErnpRestClient.java
index a64671ec..180d6928 100644
--- a/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/ernp/ErnpRestClient.java
+++ b/modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/clients/ernp/ErnpRestClient.java
@@ -916,15 +916,11 @@ public class ErnpRestClient implements IErnpClient {
@Override
public ClientHttpResponse intercept(HttpRequest request, byte[] body,
ClientHttpRequestExecution execution) throws IOException {
- boolean ernpApi2023Enabled = basicConfig.getBasicConfigurationBoolean(
- Constants.CONIG_PROPS_EIDAS_ERNPCLIENT_NEW_API_FEATURES, true);
- if (ernpApi2023Enabled) {
- log.debug("Injecting HTTP headers to enable new ERnP features ... ");
- request.getHeaders().add(HEADER_ERNP_FEATURE_ADDRESS_ARRAY, String.valueOf(ernpApi2023Enabled));
- request.getHeaders().add(HEADER_ERNP_FEATURE_NEW_DATETIME_FORMAT, String.valueOf(ernpApi2023Enabled));
- }
-
+ log.debug("Injecting HTTP headers to enable new ERnP features ... ");
+ request.getHeaders().add(HEADER_ERNP_FEATURE_ADDRESS_ARRAY, String.valueOf(true));
+ request.getHeaders().add(HEADER_ERNP_FEATURE_NEW_DATETIME_FORMAT, String.valueOf(true));
return execution.execute(request, body);
+
}
};
}