new configuration version
This commit is contained in:
parent
a6256228f9
commit
9a872ea156
|
@ -45,7 +45,7 @@ spec:
|
|||
podDisruptionBudget:
|
||||
maxUnavailable: "50%"
|
||||
git:
|
||||
tag: "r-a688715771af9b47fe1a2e89b9f650a668556a4d"
|
||||
tag: "r-531df4d70374c7edf2c8bd2dc66243ffcf866911"
|
||||
dir: "DEFAULT-ADN-AGOV-PROJECT/DEFAULT-ADN-AGOV-INV/auth"
|
||||
credentials: "git-credentials"
|
||||
keystores:
|
||||
|
|
|
@ -23,12 +23,21 @@ String clientExtId = session.get('ch.adnovum.nevisidm.user.clientExtId')
|
|||
String userExtId = session.get('ch.adnovum.nevisidm.user.extId')
|
||||
String mobile = session.get('ch.nevis.idm.User.mobile')
|
||||
|
||||
String baseUrl = parameters.get('baseUrl')
|
||||
String endPoint = "${baseUrl}/core/v1/${clientExtId}/users/${userExtId}"
|
||||
|
||||
|
||||
if (mobile) {
|
||||
response.setResult('done')
|
||||
return
|
||||
}
|
||||
if (inargs['submit'] && inargs['mobile']) {
|
||||
// TODO: save the mobile number to IDM
|
||||
String result
|
||||
try {
|
||||
result = idmRestClient.patch(endPoint, "{\"contacts\":{\"mobile\": \"${inargs[mobile]?.trim()}\"},\"added mobile number from user during request ${requestId}\":\"\"}")
|
||||
} catch(Exception e) {
|
||||
LOG.warn(e)
|
||||
}
|
||||
response.setResult('done')
|
||||
return
|
||||
}
|
||||
|
|
|
@ -880,6 +880,8 @@
|
|||
<!-- source: pattern://6d83506dfcc430c12d81dfa3 -->
|
||||
<property name="parameter.idm.baseUrl" value="https://idm:8989/nevisidm/api"/>
|
||||
<!-- source: pattern://6d83506dfcc430c12d81dfa3 -->
|
||||
<property name="parameter.idm.httpclient.tls.keyObjectRef" value="DefaultKeyStore"/>
|
||||
<!-- source: pattern://6d83506dfcc430c12d81dfa3 -->
|
||||
<property name="parameter.idm.httpclient.tls.trustStoreRef" value="Ask_Mobile_Number"/>
|
||||
<!-- source: pattern://6d83506dfcc430c12d81dfa3 -->
|
||||
<property name="parameter.cookie.domain" value=".agov-w.azure.adnovum.net"/>
|
||||
|
|
Loading…
Reference in New Issue