From 3d2540b942389be2f2e3f2496f1c2380ee49c4ca Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Thu, 23 Jul 2015 13:14:02 +0200 Subject: add requestID to SZR-Gateway request --- .../main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'id/server/idserverlib/src/main') diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java index 91a91642d..63bdab919 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/AuthenticationServer.java @@ -15,6 +15,7 @@ import java.util.Calendar; import java.util.Date; import java.util.List; import java.util.Map; +import java.util.UUID; import java.util.Vector; import javax.servlet.http.HttpServletRequest; @@ -1499,11 +1500,12 @@ public class AuthenticationServer extends MOAIDAuthConstants { AuthConfiguration authConf = AuthConfigurationProviderFactory.getInstance(); ConnectionParameter connectionParameters = authConf.getForeignIDConnectionParameter(); + String requestID = UUID.randomUUID().toString(); SZRGWClient client = new SZRGWClient(connectionParameters); CreateIdentityLinkRequest request = new CreateIdentityLinkRequest(); request.setSignature(citizenSignature.getBytes("UTF-8")); - + request.setReqID(requestID); if(PEPSDateOfBirth!=null || PEPSFamilyname!=null || PEPSFirstname!=null || PEPSIdentifier!=null || representative!=null || represented!=null || mandateContent!=null || organizationAddress!=null || organizationType!=null) { PEPSData data = new PEPSData(); -- cgit v1.2.3