- 我有一个要求,谁愿意与基本身份验证访问与他的证件(UN/PWD)的API或摘要身份验证用户身份验证
- 亦通所需的凭据(UN/PWD)在请求验证访问后端服务
我的突触中提取的配置是这样的:WSO2 APIM认证
<filter source="$ctx:AM_KEY_TYPE" regex="PRODUCTION">
<then>
<property name="api.ut.backendRequestTime"
expression="get-property('SYSTEM_TIME')"/>
<property name="password"
expression="wso2:vault-lookup('PayAdmin-- ZenoAPI51.0')"/>
<property name="unpw"
expression="fn:concat('user',':',get-property('password'))"/>
<property name="Authorization"
expression="fn:concat('Basic ', base64Encode(get-property('unpw')))"
scope="transport"/>
<send>
<endpoint name="PayAdmin--ZenoAPI5_APIproductionEndpoint_0">
<http uri-template="http://localhost:8080/payment/{uri.var.name}"/>
</endpoint>
</send>
</then>
什么,我想知道的是:
curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" --header "Authorization: Bearer 2e13c9b3c8717f43d093cfc7c63994bb" -d "{}" http://<IP address of APIM Server>:8280/Zeno1/1.0.0/payment/name
此卷曲只能采取承载令牌而是如何在卷曲
您的要求是使用CURL将用户名和密码发送到后端,是吗? – farasath