need first to authorize on d4science realm
This commit is contained in:
parent
d729118dbd
commit
debef2b479
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue