new configuration version

This commit is contained in:
haburger 2024-11-28 16:36:35 +00:00
parent 0b2985c114
commit 0ca1cf6b76
2 changed files with 4 additions and 2 deletions

View File

@ -45,7 +45,7 @@ spec:
podDisruptionBudget:
maxUnavailable: "50%"
git:
tag: "r-232522f88238bad6e4221f000cd94670545f5bf5"
tag: "r-68d22c8461fae1d86f92dc91331b67bf7ad55703"
dir: "DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth"
credentials: "git-credentials"
keystores:

View File

@ -3,6 +3,8 @@ import ch.nevis.idm.client.IdmRestClient
import ch.nevis.idm.client.IdmRestClientFactory
import ch.nevis.idm.client.HTTPRequestWrapper
import java.time.Duration
import groovy.json.JsonSlurper
import groovy.xml.XmlSlurper
@ -51,7 +53,7 @@ if (inargs['submit'] && (!inargs['mobile'] || inargs['mobile'].isEmpty()) && ina
LOG.info("Event='NOMOBILENUMBER', Requester='${requester}', RequestId='${requestId}', User=${user}, SourceIp=${sourceIp}, UserAgent='${userAgent}'")
response.setCookie("testcookie", "testvalue", "/path", "Thu, 01 Jan 2025 00:00:00 GMT",
-1, true, false);
Duration.ofDays(1), true, false);
def agovSkipAskingMobileCookie = "agovSkipAskingMobile=true; Domain=${parameters.get('cookie.domain')}; Path=/; Max-Age=86400; SameSite=Strict; Secure; HttpOnly"
response.setHeader('Set-Cookie', agovSkipAskingMobileCookie)
response.setResult('done')