added workspace to vre folder link

This commit is contained in:
Marco Lettere 2021-11-23 13:23:07 +01:00
parent fda78741db
commit 7b0f83abd1
1 changed files with 34 additions and 0 deletions

View File

@ -162,6 +162,40 @@
}, },
"body" : "${roles_to_assign.output.resultList}" "body" : "${roles_to_assign.output.resultList}"
} }
},
{
"name" : "pyrest",
"taskReferenceName" : "authorize_with_uma_rpt",
"type" : "SIMPLE",
"inputParameters" : {
"url" : "{{ keycloak }}/{{ keycloak_realm }}/protocol/openid-connect/token",
"method" : "POST",
"headers" : {
"Accept" : "application/json"
},
"body" : {
"audience" : "${init.input.root_vo}",
"grant_type" : "urn:ietf:params:oauth:grant-type:uma-ticket",
"client_id" : "orchestrator",
"client_secret" : "{{ keycloak_auth_master }}",
}
}
},
{
"name" : "pyrest",
"taskReferenceName" : "workspace_to_vre_folder",
"type" : "SIMPLE",
"inputParameters" : {
"url" : "${init.input.storagehub}/workspace/groups/${shubify_context_name.output.result.shubified_context_name}/users",
"method" : "PUT",
"body" : {
"userId" : "${get_service_account_user.output.body.username}"
},
"headers" : {
"Accept" : "application/json",
"Authorization" : "Bearer ${authorize_with_uma_rpt.output.body.access_token}"
}
}
} }
] ]
} }