[英]Performance optimization in message delivery and consuming mechanism WSO2 MB 3.1.0
[英]Wso2 bulk PDP query
wso2 PDP中是否有某些选项可用于单个请求总和?
我认为拥有类似的东西可以真正提高性能,而不必每次都询问PDP。 如果我可以发出单个请求并获得单个用户的所有访问权限,那将是很棒的。
所以我发现有一个端点/entitled-attribs
。 您可以在docs中找到它。
因此,描述中说“ Get entitled attributes for a given set of parameters.
您也可以发布其他参数,但是可以发布类似:
{
"subjectName":"somename"
}
您可以获得用户可以执行的资源和操作的响应:
{
"entitledResultSetDTO": {
"entitledAttributesDTOs": [
{
"resourceName": "SomeResource_Name",
"action": "some_action_on_the_resource",
"environment": null,
"allActions": false,
"allResources": false,
"attributeDTOs": []
},
{
"resourceName": "SomeOtherResource_Name",
"action": "some_other_action_on_the_resource",
"environment": null,
"allActions": false,
"allResources": false,
"attributeDTOs": []
}
],
"advanceResult": false,
"message": null,
"messageType": null
}
从这里开始,我们可以根据需要解析此响应。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.