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", "name" : "pyrest",
"taskReferenceName" : "authorize_uma_paarent_vo", "taskReferenceName" : "authorize_uma_parent_vo",
"type" : "SIMPLE", "type" : "SIMPLE",
"inputParameters" : { "inputParameters" : {
"url" : "${init.input.keycloak}/protocol/openid-connect/token", "url" : "${init.input.keycloak}/protocol/openid-connect/token",
@ -103,7 +103,7 @@
"method" : "GET", "method" : "GET",
"headers" : { "headers" : {
"Accept" : "application/xml", "Accept" : "application/xml",
"Authorization" : "Bearer ${authorize_uma_paarent_vo.output.body.access_token}" "Authorization" : "Bearer ${authorize_uma_parent_vo.output.body.access_token}"
} }
} }
}, },
@ -136,30 +136,13 @@
} }
}, },
{ {
"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", "name": "pyrest",
"taskReferenceName": "write_to_is", "taskReferenceName": "write_to_is",
"inputParameters": { "inputParameters": {
"url": "https://envk9v55ynw3o.x.pipedream.net//${init.output.result.child}", "url": "${init.input.base_url}/${extract_vre_id.output.result[0]}",
"method": "PUT", "method": "PUT",
"headers": { "headers": {
"Authorization": "Bearer bearer_here", "Authorization": "Bearer ${authorize_uma_rootvo.output.body.access_token}",
"Accept": "application/json", "Accept": "application/json",
"Content-Type": "application/json" "Content-Type": "application/json"
}, },