Alternate option to use some else UMA policy rather than JS policy

你离开我真会死。 提交于 2021-02-11 13:00:16

问题


I'm using JS policy as shown below:

$evaluation.getPermission();
var identity = $evaluation.getContext().getIdentity();
var resource = permission.getResource();
if (resource) {
    if (resource.getOwner().equals(identity.getId())) {
        $evaluation.grant();
    }
}

I just want this JS alternate option to client, role, etc policy. I've tried a lot of options but I haven't got success.

Please anyone can help out with this.

来源:https://stackoverflow.com/questions/64364399/alternate-option-to-use-some-else-uma-policy-rather-than-js-policy

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!