简体   繁体   English

WSO2是否是PEP集中式的,我如何将其集成到WSO2 ESB中

[英]Is WSO2 IS PEP centralized and how can i integrate it into WSO2 ESB

I would like to use/customize the PEP implementation provided by WSO2 IS, but I am not sure about two things: 我想使用/自定义WSO2 IS提供的PEP实现,但是我不确定两件事:

  1. if the PEP would be centralized or not. PEP是否集中化。 In other words, does each Web service has its own PEP or is it the same? 换句话说,每个Web服务都具有自己的PEP还是相同? In practice where would the PEP be placed? 在实践中,PEP将放置在哪里?

Also, Does is there any examples of how a PEP implementation can be integrated or incorporated into an WSO2 Enterprise Service Bus? 此外,是否有任何示例可以说明如何将PEP实施集成或合并到WSO2企业服务总线中? In other words, how can we use the two together? 换句话说,我们如何将两者一起使用?

If we are talking about WSO2ESB, There is entitlement mediator which is the PEP for WSO2 Identity Server. 如果我们在谈论WSO2ESB,则有权利调解员,它是WSO2 Identity Server的PEP。 There must be one PEP implementation. 必须有一个PEP实施。 But it can be used by several web services. 但是它可以被多个Web服务使用。 In ESB, mediator is something that you can engage with the message path to intercept the message. 在ESB中,可以使用中介程序来与消息路径交互以截取消息。 Entitlement mediator can be used as same. 权利调解人可以相同使用。 It can be engaged with multiple proxy services in the ESB. 它可以与ESB中的多个代理服务一起使用。

You can even write new PEP as a ESB mediator and engage your custom mediator in to the message path. 您甚至可以将新的PEP编写为ESB调解人,并将您的自定义调解人加入到消息路径中。 You can refer this document on writing a new custom mediator. 您可以在编写新的自定义介体时参考文档。 Also, you can reuse the PEP client code that can be found here . 另外,您可以重用在此处找到的PEP客户端代码。 Basically you want to modify the PEP client code as a ESB custom mediator 基本上,您想将PEP客户端代码修改为ESB自定义中介程序

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

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