summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2019-07-01 11:23:18 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2019-07-01 11:23:18 +0200
commit5a0cc5bfec4e800b73789d5712e3748178b840b8 (patch)
tree36d24150f8d181258d06312c601f76f3226a8213
parentc691a7d27dfc5416c2776e960bad5607308395b9 (diff)
downloadEAAF-Components-5a0cc5bfec4e800b73789d5712e3748178b840b8.tar.gz
EAAF-Components-5a0cc5bfec4e800b73789d5712e3748178b840b8.tar.bz2
EAAF-Components-5a0cc5bfec4e800b73789d5712e3748178b840b8.zip
fix one flag
update TestRequestImpl.java
-rw-r--r--eaaf_core/src/test/java/at/gv/egiz/eaaf/core/impl/idp/module/test/TestRequestImpl.java6
-rw-r--r--eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualeIDTask.java3
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 ... ");