need first to authorize on d4science realm

This commit is contained in:
Marco Lettere 2021-06-30 16:37:40 +02:00
parent d729118dbd
commit debef2b479
1 changed files with 21 additions and 4 deletions

View File

@ -20,17 +20,17 @@
}, },
{ {
"name" : "pyrest", "name" : "pyrest",
"taskReferenceName" : "authorize", "taskReferenceName" : "authorize_on_realm",
"type" : "SIMPLE", "type" : "SIMPLE",
"inputParameters" : { "inputParameters" : {
"url" : "{{ keycloak }}/master/protocol/openid-connect/token", "url" : "{{ keycloak }}/{{ keycloak_realm }}/protocol/openid-connect/token",
"method" : "POST", "method" : "POST",
"headers" : { "headers" : {
"Accept" : "application/json" "Accept" : "application/json"
}, },
"body" : { "body" : {
"client_id" : "orchestrator", "client_id" : "orchestrator",
"client_secret" : "{{ keycloak_auth_master }}", "client_secret" : "{{ keycloak_auth }}",
"grant_type" : "client_credentials" "grant_type" : "client_credentials"
} }
} }
@ -47,6 +47,23 @@
"Authorization" : "Bearer ${authorize.output.body.access_token}" "Authorization" : "Bearer ${authorize.output.body.access_token}"
} }
} }
} },
{
"name" : "pyrest",
"taskReferenceName" : "authorize",
"type" : "SIMPLE",
"inputParameters" : {
"url" : "{{ keycloak }}/master/protocol/openid-connect/token",
"method" : "POST",
"headers" : {
"Accept" : "application/json"
},
"body" : {
"client_id" : "orchestrator",
"client_secret" : "{{ keycloak_auth_master }}",
"grant_type" : "client_credentials"
}
}
},
] ]
} }