From 5a0cc5bfec4e800b73789d5712e3748178b840b8 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Mon, 1 Jul 2019 11:23:18 +0200 Subject: fix one flag update TestRequestImpl.java --- .../at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java | 6 +++--- .../eaaf/modules/auth/sl20/tasks/AbstractReceiveQualeIDTask.java | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java b/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java index b6679f2e..b1d4e113 100644 --- a/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java +++ b/eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java @@ -47,6 +47,7 @@ public class TestRequestImpl implements IRequest { private String transactionId = null; private String pendingReqId = null; private String authURL = null; + private boolean authenticated; /* (non-Javadoc) * @see at.gv.egovernment.moa.id.moduls.IRequest#requestedModule() @@ -178,8 +179,7 @@ public class TestRequestImpl implements IRequest { */ @Override public boolean isAuthenticated() { - // TODO Auto-generated method stub - return false; + return this.authenticated; } /* (non-Javadoc) @@ -187,7 +187,7 @@ public class TestRequestImpl implements IRequest { */ @Override public void setAuthenticated(boolean isAuthenticated) { - // TODO Auto-generated method stub + this.authenticated = isAuthenticated; } diff --git a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualeIDTask.java b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualeIDTask.java index cb9f54e3..488f4610 100644 --- a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualeIDTask.java +++ b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualeIDTask.java @@ -248,7 +248,7 @@ public abstract class AbstractReceiveQualeIDTask extends AbstractAuthServletTask //build second redirect command for IDP final ObjectNode redirectTwoParams = SL20JSONBuilderUtils.createRedirectCommandParameters( new DataURLBuilder().buildDataURL(pendingReq.getAuthURL(), getResumeEndPoint(), pendingReq.getPendingRequestId()), - redirectOneCommand, null, true); + redirectOneCommand, null, false); final ObjectNode redirectTwoCommand = SL20JSONBuilderUtils.createCommand(SL20Constants.SL20_COMMAND_IDENTIFIER_REDIRECT, redirectTwoParams); //build generic SL2.0 response container @@ -259,7 +259,6 @@ public abstract class AbstractReceiveQualeIDTask extends AbstractAuthServletTask redirectTwoCommand, null); - //workaround for A-Trust if (request.getHeader(SL20Constants.HTTP_HEADER_SL20_CLIENT_TYPE) != null && request.getHeader(SL20Constants.HTTP_HEADER_SL20_CLIENT_TYPE).equals(SL20Constants.HTTP_HEADER_VALUE_NATIVE)) { log.debug("Client request containts 'native client' header ... "); -- cgit v1.2.3