在wso2 PDP中是否有一些选项可用于对一笔资源提出单一请求?
我认为拥有这样的东西可以真正提高性能,而不是每次都问PDP。如果我能够提出一个请求并获得单个用户的所有访问权限,那就太好了。
发布于 2017-07-28 11:42:29
所以我发现有一个端点/entitled-attribs。你可以在文档中找到它。
描述上写着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
}从现在开始,我们可以根据我们的需要来解析这个响应。
https://stackoverflow.com/questions/45330739
复制相似问题