-
<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