简体   繁体   English

WSO2 是 XACML API

[英]WSO2is XACML API

I can use the API REST for XACML without problem following this article https://docs.wso2.com/display/IS560/Using+REST+APIs+via+XACML+to+Manage+Entitlement .我可以按照这篇文章https://docs.wso2.com/display/IS560/Using+REST+APIs+via+XACML+to+Manage+Entitlement使用 XACML 的 API REST 没有问题。

My basic question is, how can i access to pdp endpoint for validate access for the logged user, using the access token of the user that i want to apply the access rules?我的基本问题是,如何使用要应用访问规则的用户的访问令牌访问 pdp 端点以验证登录用户的访问权限?

For every request i need to send the admin user and password for tenant where the user that i can validate exist.对于每个请求,我需要发送我可以验证的用户所在的租户的管理员用户和密码。 I want to know if is possible to use this same endpoint with the access token that oaut2 token send to me.我想知道是否可以将这个相同的端点与 oaut2 令牌发送给我的访问令牌一起使用。

Yes, you can use the access token as well是的,您也可以使用访问令牌

In the Headers of the request, for the Authorization provide the values as below instead of username password.在请求的标头中,为授权提供如下值而不是用户名密码。

Authorization: Bearer <access-token>

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

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