need first to authorize on d4science realm

master
Marco Lettere 3 years ago
parent d729118dbd
commit debef2b479

@ -20,17 +20,17 @@
},
{
"name" : "pyrest",
"taskReferenceName" : "authorize",
"taskReferenceName" : "authorize_on_realm",
"type" : "SIMPLE",
"inputParameters" : {
"url" : "{{ keycloak }}/master/protocol/openid-connect/token",
"url" : "{{ keycloak }}/{{ keycloak_realm }}/protocol/openid-connect/token",
"method" : "POST",
"headers" : {
"Accept" : "application/json"
},
"body" : {
"client_id" : "orchestrator",
"client_secret" : "{{ keycloak_auth_master }}",
"client_secret" : "{{ keycloak_auth }}",
"grant_type" : "client_credentials"
}
}
@ -47,6 +47,23 @@
"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"
}
}
},
]
}

Loading…
Cancel
Save