modernize role_created and role_deleted workflows and add_role_policy_permission
This commit is contained in:
parent
09494eb668
commit
cb677a7924
|
@ -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[]')"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue