From 621e042c05c500275534ac1088b4644f61e55599 Mon Sep 17 00:00:00 2001 From: haburger Date: Wed, 22 Jan 2025 16:13:22 +0000 Subject: [PATCH] new configuration version --- ...8s-nevisauth-7022472ae407577ae604bbb8.yaml | 2 +- .../opt/nevisauth/default/conf/esauth4.xml | 10 +++----- .../conf/questionnaireLfProcessing.groovy | 25 +++++++++++++++++++ .../conf/questionnaireReasonProcessing.groovy | 4 +++ 4 files changed, 33 insertions(+), 8 deletions(-) create mode 100644 DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/var/opt/nevisauth/default/conf/questionnaireLfProcessing.groovy diff --git a/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/etc/nevis/k8s-nevisauth-7022472ae407577ae604bbb8.yaml b/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/etc/nevis/k8s-nevisauth-7022472ae407577ae604bbb8.yaml index 6671a53..ce86f96 100644 --- a/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/etc/nevis/k8s-nevisauth-7022472ae407577ae604bbb8.yaml +++ b/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/etc/nevis/k8s-nevisauth-7022472ae407577ae604bbb8.yaml @@ -45,7 +45,7 @@ spec: podDisruptionBudget: maxUnavailable: "50%" git: - tag: "r-20a60efb7465c08b914996cdae59dd87fd1052d1" + tag: "r-3661d1b94c95cb7ba123e574390d8dbaaed8e7a2" dir: "DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth" credentials: "git-credentials" keystores: diff --git a/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/var/opt/nevisauth/default/conf/esauth4.xml b/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/var/opt/nevisauth/default/conf/esauth4.xml index 434e6ce..38d6ba7 100644 --- a/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/var/opt/nevisauth/default/conf/esauth4.xml +++ b/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/var/opt/nevisauth/default/conf/esauth4.xml @@ -1671,7 +1671,7 @@ - + @@ -1693,11 +1693,7 @@ - - - - - + @@ -1825,7 +1821,7 @@ - + diff --git a/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/var/opt/nevisauth/default/conf/questionnaireLfProcessing.groovy b/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/var/opt/nevisauth/default/conf/questionnaireLfProcessing.groovy new file mode 100644 index 0000000..9feef83 --- /dev/null +++ b/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/var/opt/nevisauth/default/conf/questionnaireLfProcessing.groovy @@ -0,0 +1,25 @@ +import ch.nevis.esauth.auth.engine.AuthResponse + +if (inargs['cancel'] && inargs['cancel'] == 'cancel') { + def s = request.getAuthSession(true) + s.removeAttribute('agov.recovery.moreThanOneLf') + + response.setResult('cancel') + return +} + +if (inargs['continue'] && inargs['continue'] == 'yes') { + response.setSessionAttribute('agov.recovery.moreThanOneLf', 'yes') + response.setResult('loginFactorYes') + return +} + +if (inargs['continue'] && inargs['continue'] == 'no') { + response.setSessionAttribute('agov.recovery.moreThanOneLf', 'no') + response.setResult('loginFactorNo') + return +} + +// if we reach this, display the GUI again +response.setStatus(AuthResponse.AUTH_CONTINUE) +return \ No newline at end of file diff --git a/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/var/opt/nevisauth/default/conf/questionnaireReasonProcessing.groovy b/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/var/opt/nevisauth/default/conf/questionnaireReasonProcessing.groovy index bd2b86e..07f9f3c 100644 --- a/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/var/opt/nevisauth/default/conf/questionnaireReasonProcessing.groovy +++ b/DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth/var/opt/nevisauth/default/conf/questionnaireReasonProcessing.groovy @@ -5,6 +5,10 @@ if (inargs['reason']) { } if (inargs['cancel'] && inargs['cancel'] == 'cancel') { + def s = request.getAuthSession(true) + s.removeAttribute('agov.recovery.moreThanOneLf') + s.removeAttribute('agov.recovery.reason') + response.setResult('cancel') return }