fixed url to IS

This commit is contained in:
Marco Lettere 2023-07-18 14:56:46 +02:00
parent f54792e117
commit 5b308bf8cd
1 changed files with 4 additions and 21 deletions

View File

@ -78,7 +78,7 @@
[
{
"name" : "pyrest",
"taskReferenceName" : "authorize_uma_paarent_vo",
"taskReferenceName" : "authorize_uma_parent_vo",
"type" : "SIMPLE",
"inputParameters" : {
"url" : "${init.input.keycloak}/protocol/openid-connect/token",
@ -103,7 +103,7 @@
"method" : "GET",
"headers" : {
"Accept" : "application/xml",
"Authorization" : "Bearer ${authorize_uma_paarent_vo.output.body.access_token}"
"Authorization" : "Bearer ${authorize_uma_parent_vo.output.body.access_token}"
}
}
},
@ -135,31 +135,14 @@
"scriptExpression": "function e(v){ return (v == null || (v.trim && v.trim() === ''))} if(e($.vre) || e($.infra)) throw('VRE ID and Infra ID must not be empty'); {}"
}
},
{
"name" : "pyrest",
"taskReferenceName" : "authorize",
"type" : "SIMPLE",
"inputParameters" : {
"url" : "{{ keycloak }}/{{ keycloak_realm }}/protocol/openid-connect/token",
"method" : "POST",
"headers" : {
"Accept" : "application/json"
},
"body" : {
"client_id" : "orchestrator",
"client_secret" : "{{ keycloak_auth }}",
"grant_type" : "client_credentials"
}
}
},
{
"name": "pyrest",
"taskReferenceName": "write_to_is",
"inputParameters": {
"url": "https://envk9v55ynw3o.x.pipedream.net//${init.output.result.child}",
"url": "${init.input.base_url}/${extract_vre_id.output.result[0]}",
"method": "PUT",
"headers": {
"Authorization": "Bearer bearer_here",
"Authorization": "Bearer ${authorize_uma_rootvo.output.body.access_token}",
"Accept": "application/json",
"Content-Type": "application/json"
},