handle secret and description as inputs

This commit is contained in:
Marco Lettere 2021-10-07 14:07:55 +02:00
parent 5e3264aebb
commit 6b8c2fb1dc
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
"id" : "${workflow.input.client_id}",
"secret" : "${workflow.input.client_secret}",
"description" : "${workflow.input.description}",
"scriptExpression": "return { 'client' : { clientId : $.id, description : $.description ? $.description : $.id, 'secret' : $.secret ? $.secret : Java.type('java.util.UUID').randomUUID().toString()), rootUrl : '', enabled : true, serviceAccountEnabled : true, standardFlowEnabled : true, authorizationServicesEnabled : false, publicClient : false, fullScopeAllowed : true, protocol : 'openid-connect'} }"
"scriptExpression": "return { 'client' : { clientId : $.id, description : ($.description ? $.description : $.id), secret : $.secret ? ($.secret : Java.type('java.util.UUID').randomUUID().toString()), rootUrl : '', enabled : true, serviceAccountEnabled : true, standardFlowEnabled : true, authorizationServicesEnabled : false, publicClient : false, fullScopeAllowed : true, protocol : 'openid-connect'} }"
}
},
{