[英]Entitlement Service Mediation in SaaS Enabled application in multi tenant environment of WSO2 API Manager
I am working on WSO2 API Manager - 3.1.0 with KM as WSO2 Identity Server.我正在研究 WSO2 API Manager - 3.1.0,KM 作为 WSO2 身份服务器。 I had configured some XACML policies inside IS to be applied on any API request, but to evaluate those i need to add the EntitlementService in the in-sequence of the request which contains the details as mentioned below:
我在 IS 中配置了一些 XACML 策略以应用于任何 API 请求,但要评估那些我需要在请求的顺序中添加 EntitlementService,其中包含如下所述的详细信息:
As I am using multi tenant environment and the application which will subscribe the api's will be SAAS Enabled how I can implement Entitlement Service Mediation for these type of applications.由于我使用的是多租户环境,并且将订阅 api 的应用程序将启用 SAAS,因此我如何为这些类型的应用程序实施授权服务中介。
Create an XML file named EntitlementMediator.xml
and add the following sequence:创建名为
EntitlementMediator.xml
的 XML 文件并添加以下序列:
<?xml version="1.0"?>
<sequence name="EntitlementMediator" xmlns="http://ws.apache.org/ns/synapse">
<entitlementService xmlns="http://ws.apache.org/ns/synapse" callbackClass="org.wso2.sample.handlers.entitlement.APIEntitlementCallbackHandler" remoteServicePassword="admin" remoteServiceUserName="admin" remoteServiceUrl="https://localhost:9444/services"/>
</sequence>
Add remoteServiceusername, remoteServicepassword and remoteServiceUrl of your IS server.添加您的 IS 服务器的 remoteServiceusername、remoteServicepassword 和 remoteServiceUrl。 localhost:9444 is the IP and port of IS whereas username and password are the IS carbon.super credentials.
localhost:9444 是 IP 和 IS 的端口,而用户名和密码是 IS carbon.super 凭据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.