From 5b308bf8cd0dce1e0d5f88c1152ce01f59166d83 Mon Sep 17 00:00:00 2001 From: "m.lettere" Date: Tue, 18 Jul 2023 14:56:46 +0200 Subject: [PATCH] fixed url to IS --- templates/record_context_to_is.json.j2 | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/templates/record_context_to_is.json.j2 b/templates/record_context_to_is.json.j2 index 941ab65..42ea8b4 100644 --- a/templates/record_context_to_is.json.j2 +++ b/templates/record_context_to_is.json.j2 @@ -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}" } } }, @@ -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", "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" },