changed realm role to infrastructure-member

This commit is contained in:
Marco Lettere 2021-11-02 10:30:37 +01:00
parent 7c6f28ea62
commit 390d826a15
1 changed files with 4 additions and 4 deletions

View File

@ -76,9 +76,9 @@
{ {
"name" : "pyrest", "name" : "pyrest",
"type" : "SIMPLE", "type" : "SIMPLE",
"taskReferenceName": "retrieve_infra_manager_role", "taskReferenceName": "retrieve_infra_member_role",
"inputParameters" : { "inputParameters" : {
"url" : "${init.input.keycloak_admin}/roles/Infrastructure-Manager", "url" : "${init.input.keycloak_admin}/roles/Infrastructure-Member",
"method" :"GET", "method" :"GET",
"headers" : { "headers" : {
"Authorization" : "Bearer ${authorize.output.body.access_token}", "Authorization" : "Bearer ${authorize.output.body.access_token}",
@ -91,14 +91,14 @@
"taskReferenceName": "to_array", "taskReferenceName": "to_array",
"type": "JSON_JQ_TRANSFORM", "type": "JSON_JQ_TRANSFORM",
"inputParameters": { "inputParameters": {
"role": "${retrieve_infra_manager_role.output.body}", "role": "${retrieve_infra_memeber_role.output.body}",
"queryExpression" : ".role" "queryExpression" : ".role"
} }
}, },
{ {
"name" : "pyrest", "name" : "pyrest",
"type" : "SIMPLE", "type" : "SIMPLE",
"taskReferenceName": "assign_infra_manager_role", "taskReferenceName": "assign_infra_member_role",
"inputParameters" : { "inputParameters" : {
"url" : "${init.input.keycloak_admin}/users/${get_service_account_user.output.body.id}/role-mappings/realm", "url" : "${init.input.keycloak_admin}/users/${get_service_account_user.output.body.id}/role-mappings/realm",
"method" :"POST", "method" :"POST",