[英]Wso2 bulk PDP query
Is there some option in wso2 PDP for making a single request for a sum of resources? wso2 PDP中是否有某些选项可用于单个请求总和?
I think that having something like that can really improve the performance instead of asking the PDP every time. 我认为拥有类似的东西可以真正提高性能,而不必每次都询问PDP。 It would be great if I could make a single request and get all the access rights for a single user.
如果我可以发出单个请求并获得单个用户的所有访问权限,那将是很棒的。
So i found that there is an endpoint /entitled-attribs
. 所以我发现有一个端点
/entitled-attribs
。 You can find it in the docs . 您可以在docs中找到它。
So the description says Get entitled attributes for a given set of parameters.
因此,描述中说“
Get entitled attributes for a given set of parameters.
You can post other parameters as well but by posting something like : 您也可以发布其他参数,但是可以发布类似:
{
"subjectName":"somename"
}
you can get a response of the resources and the actions that the user can do : 您可以获得用户可以执行的资源和操作的响应:
{
"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
}
And from here on we can just parse this response depending on our needs. 从这里开始,我们可以根据需要解析此响应。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.