aboutsummaryrefslogtreecommitdiff
path: root/id
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2021-06-07 07:19:01 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2021-06-07 07:19:01 +0200
commitdd90213ddbfeee68843fddaa7bf37624812ef217 (patch)
treed6d0ec464ee7ab989f00988286e0017dcb75dad0 /id
parent7c0b889c2eab8734f890c2a53175852422760416 (diff)
downloadmoa-id-spss-dd90213ddbfeee68843fddaa7bf37624812ef217.tar.gz
moa-id-spss-dd90213ddbfeee68843fddaa7bf37624812ef217.tar.bz2
moa-id-spss-dd90213ddbfeee68843fddaa7bf37624812ef217.zip
set 'needConsent' flag to false during dummy-authenticatio to over-roll SP configuration
Diffstat (limited to 'id')
-rw-r--r--id/server/modules/moa-id-module-dummyAuth/pom.xml1
-rw-r--r--id/server/modules/moa-id-module-dummyAuth/src/main/java/at/gv/egovernment/moa/id/auth/modules/auth/dummy/task/InjectDummyIdentityInformationTask.java6
2 files changed, 7 insertions, 0 deletions
diff --git a/id/server/modules/moa-id-module-dummyAuth/pom.xml b/id/server/modules/moa-id-module-dummyAuth/pom.xml
index 42b8ca775..b8f1163ad 100644
--- a/id/server/modules/moa-id-module-dummyAuth/pom.xml
+++ b/id/server/modules/moa-id-module-dummyAuth/pom.xml
@@ -9,6 +9,7 @@
<version>4.1.6-SNAPSHOT</version>
</parent>
<artifactId>moa-id-module-dummy-authenticatiuon</artifactId>
+ <version>${moa-id-dummy-auth.version}</version>
<description>Module for dummy authentication in MOA-ID</description>
<dependencies>
diff --git a/id/server/modules/moa-id-module-dummyAuth/src/main/java/at/gv/egovernment/moa/id/auth/modules/auth/dummy/task/InjectDummyIdentityInformationTask.java b/id/server/modules/moa-id-module-dummyAuth/src/main/java/at/gv/egovernment/moa/id/auth/modules/auth/dummy/task/InjectDummyIdentityInformationTask.java
index 8fed1c544..5eb441bc9 100644
--- a/id/server/modules/moa-id-module-dummyAuth/src/main/java/at/gv/egovernment/moa/id/auth/modules/auth/dummy/task/InjectDummyIdentityInformationTask.java
+++ b/id/server/modules/moa-id-module-dummyAuth/src/main/java/at/gv/egovernment/moa/id/auth/modules/auth/dummy/task/InjectDummyIdentityInformationTask.java
@@ -75,6 +75,12 @@ public class InjectDummyIdentityInformationTask extends AbstractAuthServletTask
Logger.debug("Injecting user credentials for Dummy-Identity authentication ... ");
parseDemoValuesIntoMOASession(pendingReq);
+ // set 'needConsent' to false, because user gives consent during authentication
+ pendingReq.setNeedUserConsent(false);
+
+ // set 'authenticated' flag to true
+ pendingReq.setAuthenticated(true);
+
// store MOASession into database
requestStoreage.storePendingRequest(pendingReq);