问题
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