简体   繁体   English

用于下载 XACML 3.0 权利的 REST API

[英]REST API to download XACML 3.0 entitlements

是否可以通过 REST API 下载所有(或部分)XACML 策略/权利?

Your question is very vague.你的问题很模糊。 You have to clarify.你必须澄清。

XACML is a policy-based authorization solution. XACML 是一种基于策略的授权解决方案。 It does not maintain user entitlements directly per se.它本身并不直接维护用户权利。 Instead of saying that Alice is a doctor and can do "viewMedicalRecord", a XACML policy states that XACML 策略不是说 Alice 是医生并且可以执行“viewMedicalRecord”,而是指出

Doctors can view medical records医生可以查看病历

You then ask a Yes / No question eg然后你问一个是/否问题,例如

Can Alice view medical record #123? Alice 可以查看病历 #123 吗?

Axiomatics provides 2 APIs (SOAP and REST) for that. Axiomatics 为此提供了 2 个 API(SOAP 和 REST)。

Reverse Querying反向查询

In addition to the binary approach, it is also possible to do a reverse query of the authorization policies.除了二进制方法,还可以对授权策略进行反向查询 Rather than asking for a Yes/No question, you can ask:与其问是/否问题,不如问:

What can Alice do?爱丽丝能做什么?

This API would let you generate and download entitlements from a XACML API.此 API 可让您从 XACML API 生成和下载权利。

Here you can find the /entitlements-all REST API details您可以在此处找到 /entitlements-all REST API 详细信息

https://is.docs.wso2.com/en/latest/develop/entitlement-with-rest-apis/#get-all-entitlements https://is.docs.wso2.com/en/latest/develop/entitlement-with-rest-apis/#get-all-entitlements

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM