WSO2 是 XACML API [英] WSO2is XACML API

查看:39
本文介绍了WSO2 是 XACML API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照这篇文章,我可以毫无问题地使用 API REST for XACML https://docs.wso2.com/display/IS560/Using+REST+APIs+via+XACML+to+Manage+Entitlement.

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.

我的基本问题是,如何使用要应用访问规则的用户的访问令牌访问 pdp 端点以验证登录用户的访问权限?

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?

对于每个请求,我需要发送我可以验证的用户所在的租户的管理员用户和密码.我想知道是否可以将同一端点与 oaut2 令牌发送给我的访问令牌一起使用.

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.

推荐答案

是的,您也可以使用访问令牌

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>

这篇关于WSO2 是 XACML API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆