2
如何从WSO2 ESB Webservices注入HTTP头中的Authenticated User。我想将auth用户注入为http头并从后端读取。 谢谢在WSO2 ESB Web服务的HTTP标头中注入Authenticated User WSO2 ESB
如何从WSO2 ESB Webservices注入HTTP头中的Authenticated User。我想将auth用户注入为http头并从后端读取。 谢谢在WSO2 ESB Web服务的HTTP标头中注入Authenticated User WSO2 ESB
在send:endpoint之前添加以下属性。
<property xmlns:ns="http://org.apache.synapse/xsd"
name="Authorization"
expression="fn:concat('Basic ', base64Encode('username:password'))"
scope="transport"/>
欢迎使用堆栈溢出:-)到目前为止,您尝试了什么? 请看[问] 和[mcve]。这将有助于获得有用的答案。 – JimHawkins