introduce uma based authorization step

This commit is contained in:
Marco Lettere 2021-06-30 17:24:51 +02:00
parent d8a47e00a2
commit 597ba693d9
1 changed files with 17 additions and 1 deletions

View File

@ -35,6 +35,22 @@
} }
} }
}, },
{
"name" : "pyrest",
"taskReferenceName" : "authorize_with_uma_rpt",
"type" : "SIMPLE",
"inputParameters" : {
"url" : "{{ keycloak }}/{{ keycloak_realm }}/protocol/openid-connect/token",
"method" : "POST",
"headers" : {
"Accept" : "application/json"
},
"body" : {
"audience" : "{{ root_vo }}",
"grant_type" : "urn:ietf:params:oauth:grant-type:uma-ticket"
}
}
},
{ {
"name" : "pyrest", "name" : "pyrest",
"taskReferenceName" : "retrieve_system_services", "taskReferenceName" : "retrieve_system_services",
@ -44,7 +60,7 @@
"method" : "GET", "method" : "GET",
"headers" : { "headers" : {
"Accept" : "application/xml", "Accept" : "application/xml",
"Authorization" : "Bearer ${authorize_on_realm.output.body.access_token}" "Authorization" : "Bearer ${authorize_with_uma_rpt.output.body.access_token}"
} }
} }
}, },