From 5e3264aebbf64b91ae0f569a8aab6b5d61dcc36f Mon Sep 17 00:00:00 2001 From: "m.lettere" Date: Thu, 7 Oct 2021 14:04:55 +0200 Subject: [PATCH] handle secret and description as inputs --- templates/create_system_service.json.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/create_system_service.json.j2 b/templates/create_system_service.json.j2 index 863c869..1e431f8 100644 --- a/templates/create_system_service.json.j2 +++ b/templates/create_system_service.json.j2 @@ -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'} }" } }, {