fix encoding of rootvo
This commit is contained in:
parent
9bc84b40ec
commit
253733e698
|
@ -12,11 +12,11 @@
|
||||||
"taskReferenceName": "init",
|
"taskReferenceName": "init",
|
||||||
"type": "LAMBDA",
|
"type": "LAMBDA",
|
||||||
"inputParameters": {
|
"inputParameters": {
|
||||||
"root_vo": "{{ encodeURI(root_vo) }}",
|
"root_vo": "{{ root_vo }}",
|
||||||
"keycloak": "{{ keycloak }}/{{ keycloak_realm }}",
|
"keycloak": "{{ keycloak }}/{{ keycloak_realm }}",
|
||||||
"keycloak_admin" : "{{ keycloak_admin }}/{{ keycloak_realm }}",
|
"keycloak_admin" : "{{ keycloak_admin }}/{{ keycloak_realm }}",
|
||||||
"clientId" : "${workflow.input.group}",
|
"clientId" : "${workflow.input.group}",
|
||||||
"scriptExpression": "var tree = $.clientId.split('%2F'); return { 'tree' : tree, 'child': tree[tree.length-1], 'append' : tree.slice(0,-1).join('/'), 'name' : tree.join('/')}"
|
"scriptExpression": "var tree = $.clientId.split('%2F'); return { 'tree' : tree, 'child': tree[tree.length-1], 'append' : tree.slice(0,-1).join('/'), 'name' : tree.join('/'), encoded_root_vo : encodeURI($.root_vo)}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -158,7 +158,7 @@
|
||||||
"taskReferenceName" : "get_rootvo",
|
"taskReferenceName" : "get_rootvo",
|
||||||
"type" : "SIMPLE",
|
"type" : "SIMPLE",
|
||||||
"inputParameters" : {
|
"inputParameters" : {
|
||||||
"url" : "${init.input.keycloak_admin}/clients?clientId=${init.input.root_vo}",
|
"url" : "${init.input.keycloak_admin}/clients?clientId=${init.output.encoded_root_vo}",
|
||||||
"method" : "GET",
|
"method" : "GET",
|
||||||
"headers" : {
|
"headers" : {
|
||||||
"Authorization" : "Bearer ${authorize.output.body.access_token}",
|
"Authorization" : "Bearer ${authorize.output.body.access_token}",
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
"taskReferenceName": "init",
|
"taskReferenceName": "init",
|
||||||
"type": "LAMBDA",
|
"type": "LAMBDA",
|
||||||
"inputParameters": {
|
"inputParameters": {
|
||||||
"root_vo": "{{ encodeURI(root_vo) }}",
|
|
||||||
"keycloak": "{{ keycloak }}/{{ keycloak_realm }}",
|
"keycloak": "{{ keycloak }}/{{ keycloak_realm }}",
|
||||||
"keycloak_admin" : "{{ keycloak_admin }}/{{ keycloak_realm }}",
|
"keycloak_admin" : "{{ keycloak_admin }}/{{ keycloak_realm }}",
|
||||||
"scriptExpression": "1 == 1"
|
"scriptExpression": "1 == 1"
|
||||||
|
|
Loading…
Reference in New Issue