modernize role_created and role_deleted workflows and add_role_policy_permission

This commit is contained in:
Marco Lettere 2023-10-12 17:00:28 +02:00
parent 09494eb668
commit cb677a7924
1 changed files with 8 additions and 6 deletions

View File

@ -8,13 +8,14 @@
"inputParameters" : ["role"],
"tasks" : [
{
"name": "LAMBDA_TASK",
"name": "INLINE_TASK",
"taskReferenceName": "init",
"type": "LAMBDA",
"type": "INLINE",
"inputParameters": {
"keycloak": "{{ keycloak }}/{{ keycloak_realm }}",
"keycloak_admin" : "{{ keycloak_admin }}/{{ keycloak_realm }}",
"scriptExpression": "1 == 1"
"evaluatorType" : "javascript",
"scriptExpression": "1 == 1"
}
},
{
@ -101,13 +102,14 @@
"joinOn" : ["retrieve_default_permission_policies","add_policy"]
},
{
"name": "LAMBDA_TASK",
"name": "INLINE_TASK",
"taskReferenceName": "to_policy_array",
"type": "LAMBDA",
"type": "INLINE",
"inputParameters": {
"newpolicy": "${add_policy.output.body}",
"evaluatorType" : "javascript",
"prevpolicies" : "${retrieve_default_permission_policies.output.body}",
"scriptExpression": "return Java.to(Java.from($.prevpolicies).concat($.newpolicy),'java.util.Map[]')"
"expression": "Java.to(Java.from($.prevpolicies).concat($.newpolicy),'java.util.Map[]')"
}
},
{