parametrized with new parameters
This commit is contained in:
parent
c05a90a311
commit
da134f43be
|
@ -14,5 +14,6 @@ keycloak: "{{ keycloak_host }}/realms"
|
||||||
keycloak_realm: "d4science"
|
keycloak_realm: "d4science"
|
||||||
keycloak_admin: "{{ keycloak_host }}/admin/realms"
|
keycloak_admin: "{{ keycloak_host }}/admin/realms"
|
||||||
keycloak_auth: "c93501bd-abeb-4228-bc28-afac38877338"
|
keycloak_auth: "c93501bd-abeb-4228-bc28-afac38877338"
|
||||||
|
keycloak_auth_master: "7a64deb5-e8ea-4add-ba8d-26b339994cc9"
|
||||||
liferay: "https://next.d4science.org/api/jsonws"
|
liferay: "https://next.d4science.org/api/jsonws"
|
||||||
liferay_auth: "bm90aWZpY2F0aW9uc0BkNHNjaWVuY2Uub3JnOmdjdWJlcmFuZG9tMzIx"
|
liferay_auth: "bm90aWZpY2F0aW9uc0BkNHNjaWVuY2Uub3JnOmdjdWJlcmFuZG9tMzIx"
|
||||||
|
|
|
@ -7,30 +7,30 @@
|
||||||
"ownerEmail" : "marco.lettere@nubisware.com",
|
"ownerEmail" : "marco.lettere@nubisware.com",
|
||||||
"inputParameters" : ["user", "group"],
|
"inputParameters" : ["user", "group"],
|
||||||
"tasks" : [
|
"tasks" : [
|
||||||
{
|
{
|
||||||
"name": "LAMBDA_TASK",
|
"name": "LAMBDA_TASK",
|
||||||
"taskReferenceName": "init",
|
"taskReferenceName": "init",
|
||||||
"type": "LAMBDA",
|
"type": "LAMBDA",
|
||||||
"inputParameters": {
|
"inputParameters": {
|
||||||
"keycloak": "{{ keycloak }}/{{ keycloak_realm }}",
|
"keycloak": "{{ keycloak }}/{{ keycloak_realm }}",
|
||||||
"keycloak_admin" : "{{ keycloak_admin }}/{{ keycloak_realm }}",
|
"keycloak_admin" : "{{ keycloak_admin }}/{{ keycloak_realm }}",
|
||||||
"clientId" : "${workflow.input.group}",
|
"clientId" : "${workflow.input.group}",
|
||||||
"scriptExpression": "var tree = $.clientId.split('%2F'); return { 'tree' : tree, 'child': tree[tree.length-1], 'append' : tree.slice(0,-1).join('/'), 'name' : tree.join('/')}"
|
"scriptExpression": "var tree = $.clientId.split('%2F'); return { 'tree' : tree, 'child': tree[tree.length-1], 'append' : tree.slice(0,-1).join('/'), 'name' : tree.join('/')}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name" : "pyrest",
|
"name" : "pyrest",
|
||||||
"taskReferenceName" : "authorize",
|
"taskReferenceName" : "authorize",
|
||||||
"type" : "SIMPLE",
|
"type" : "SIMPLE",
|
||||||
"inputParameters" : {
|
"inputParameters" : {
|
||||||
"url" : "https://accounts.dev.d4science.org/auth/realms/master/protocol/openid-connect/token",
|
"url" : "{{ keycloak }}/master/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" : "7a64deb5-e8ea-4add-ba8d-26b339994cc9",
|
"client_secret" : "{{ keycloak_auth_master }}",
|
||||||
"grant_type" : "client_credentials"
|
"grant_type" : "client_credentials"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue