new configuration version

This commit is contained in:
haburger 2024-11-22 11:05:25 +00:00
parent d4b5e0e991
commit 4a2f89047a
2 changed files with 7 additions and 1 deletions

View File

@ -45,7 +45,7 @@ spec:
podDisruptionBudget: podDisruptionBudget:
maxUnavailable: "50%" maxUnavailable: "50%"
git: git:
tag: "r-99b024ab40db43dd54605ef7a00c68a144b42b27" tag: "r-3aab3f0794f78c9a05e89e88a737ad0e3e648f7f"
dir: "DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth" dir: "DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth"
credentials: "git-credentials" credentials: "git-credentials"
keystores: keystores:

View File

@ -15,14 +15,17 @@ def credentialType = session['authenticatedWith'] ?: 'unknown'
def sourceIp = request.getLoginContext()['connection.HttpHeader.X-Real-IP'] ?: 'unknown' def sourceIp = request.getLoginContext()['connection.HttpHeader.X-Real-IP'] ?: 'unknown'
def userAgent = request.getLoginContext()['connection.HttpHeader.user-agent'] ?: request.getLoginContext()['connection.HttpHeader.User-Agent'] ?: 'unknown' def userAgent = request.getLoginContext()['connection.HttpHeader.user-agent'] ?: request.getLoginContext()['connection.HttpHeader.User-Agent'] ?: 'unknown'
LOG.info("----- 1")
IdmRestClient idmRestClient = IdmRestClientFactory.get(parameters) IdmRestClient idmRestClient = IdmRestClientFactory.get(parameters)
LOG.info("----- 2")
String clientExtId = session.get('ch.adnovum.nevisidm.user.clientExtId') String clientExtId = session.get('ch.adnovum.nevisidm.user.clientExtId')
String userExtId = session.get('ch.adnovum.nevisidm.user.extId') String userExtId = session.get('ch.adnovum.nevisidm.user.extId')
String mobile = session.get('ch.nevis.idm.User.mobile') String mobile = session.get('ch.nevis.idm.User.mobile')
LOG.info("----- 3")
String baseUrl = parameters.get('baseUrl') String baseUrl = parameters.get('baseUrl')
String endPoint = "${baseUrl}/core/v1/${clientExtId}/users/${userExtId}" String endPoint = "${baseUrl}/core/v1/${clientExtId}/users/${userExtId}"
@ -33,6 +36,9 @@ if (mobile) {
} }
if (inargs['submit'] && inargs['mobile']) { if (inargs['submit'] && inargs['mobile']) {
String result String result
LOG.info("----- 4")
def patchBdy = "{\"contacts\":{\"mobile\": \"${inargs[mobile]?.trim()}\"},\"added mobile number from user during request ${requestId}\":\"\"}" def patchBdy = "{\"contacts\":{\"mobile\": \"${inargs[mobile]?.trim()}\"},\"added mobile number from user during request ${requestId}\":\"\"}"
try { try {
LOG.info("-----") LOG.info("-----")