WSO2is XACML API

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-28 17:45:54

问题


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.

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?

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.


回答1:


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>


来源:https://stackoverflow.com/questions/59848647/wso2is-xacml-api

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