diff options
Diffstat (limited to 'id/server/idserverlib')
| -rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java | 11 | 
1 files changed, 8 insertions, 3 deletions
| diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java index 4cd192070..4d6d3e538 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/servlet/PEPSConnectorServlet.java @@ -360,14 +360,19 @@ public class PEPSConnectorServlet extends AuthServlet {  	        	targetType = AuthenticationSession.TARGET_PREFIX_ + oaParam.getTarget();
  	        }
 -			Logger.debug("Starting connecting SZR Gateway");
 -			//contact SZR Gateway
  			IdentityLink identityLink = null;
  			try {
 -				identityLink = STORKResponseProcessor.connectToSZRGateway(authnResponse.getPersonalAttributeList(),
 +				AuthConfigurationProvider config = AuthConfigurationProvider.getInstance();
 +				if(config.isStorkFakeIdLActive() && config.getStorkFakeIdLCountries().contains(storkAuthnRequest.getCitizenCountryCode())) {
 +					// create fake IdL
 +				} else {
 +					//contact SZR Gateway
 +					Logger.debug("Starting connecting SZR Gateway");
 +					identityLink = STORKResponseProcessor.connectToSZRGateway(authnResponse.getPersonalAttributeList(),
  																		  oaParam.getFriendlyName(), 
  																		  targetType, null, 
  																		  oaParam.getMandateProfiles(), citizenSignature);
 +				}
  			} catch (STORKException e) {
  				// this is really nasty but we work against the system here. We are supposed to get the gender attribute from
  				// stork. If we do not, we cannot register the person in the ERnP - we have to have the
 | 
