我正在使用Mule 4,我正在尝试创建一个测试用例,其中我希望使用flow-ref调用具有基本身份验证的流Http侦听器
<http:authentication>
<http:basic-authentication username="${admin.user}" password="${admin.password}" />
</http:authentication>但是我得到了基本的身份验证错误,下面Mule 3的方法不起作用
<munit:inbound-properties>
<munit:inbound-property key="Authorization" value="Basic YWRtaW46OWJjRFAyclF3RXBlamRYelpW==" />
<munit:inbound-property key="username" value="admin" />
<munit:inbound-property key="password" value="123" />
</munit:inbound-properties>有什么办法可以解决这个问题吗?
发布于 2019-09-04 06:15:58
在Mule4中,对HTTP基本身份验证的支持在某种程度上已经移交给了Spring Security。下面的Mulesoft教程详细介绍了Mule 4方法。
https://stackoverflow.com/questions/53612740
复制相似问题