addition of new permission

This commit is contained in:
dcore94 2021-03-03 18:46:34 +01:00
parent 971cf38a5f
commit 11fe723b9b
1 changed files with 21 additions and 1 deletions

View File

@ -428,6 +428,26 @@
"name" : "join",
"taskReferenceName" : "join_role_creation",
"type" : "JOIN"
}
},
{
"name" : "pyrest",
"taskReferenceName" : "create_permission",
"type" : "SIMPLE",
"inputParameters" : {
"url" : "${init.input.keycloak_admin}/clients/${extract_client_id.output.result.client_id}/authz/resource-server/permission/resource",
"body" : {
"name": "Default Permission",
"description": "",
"type" : "resource",
"logic": "POSITIVE",
"decisionStrategy": "AFFIRMATIVE"
},
"method" : "POST",
"headers" : {
"Authorization" : "Bearer ${authorize.output.body.access_token}",
"Content-Type" : "application/json"
}
}
}
]
}