router/authz-router.go:17。controller.GetPermissionCatalog,controller/authz.go:15。user:read。同时需要满足接口的角色和业务要求。Authorization: Bearer ********************curl --location '/api/authz/catalog' \
--header 'Authorization: Bearer <token>'{
"data": {
"resources": [
{
"resource": "string",
"label_key": "string",
"actions": [
{
"action": "string",
"label_key": "string",
"description_key": "string",
"property1": "string",
"property2": "string"
}
],
"property1": "string",
"property2": "string"
}
],
"roles": [
{
"key": "string",
"name": "string",
"built_in": true,
"superuser": true,
"grants": {
"property1": {
"property1": true,
"property2": true
},
"property2": {
"property1": true,
"property2": true
}
},
"property1": "string",
"property2": "string"
}
],
"property1": "string",
"property2": "string"
},
"message": "string",
"success": true,
"property1": "string",
"property2": "string"
}