简体   繁体   中英

Azure APIM: Send a client certificate with send-request mode

Is it possible in azure apim to use the policy "send-request mode" to send a certificate with the request?

<send-request mode="new" response-variable-name="" timeout="seconds" ignore-error="true">
    <set-url></set-url>
    <set-method>GET</set-method>
    <set-header name="" exists-action="override">
        <value></value>
    </set-header>
    <set-body></set-body>
</send-request>

Is it possible in azure apim to use the policy "send-request mode" to send a certificate with the request?

In short, it's possible.

The send-request policy sends the provided request to the specified URL, waiting no longer than the set timeout value.

Policy statement is as below:

<send-request mode="new|copy" response-variable-name="" timeout="60 sec" ignore-error
="false|true">
  <set-url>...</set-url>
  <set-method>...</set-method>
  <set-header name="" exists-action="override|skip|append|delete">...</set-header>
  <set-body>...</set-body>
  <authentication-certificate thumbprint="thumbprint" />
</send-request>

Use the authentication-certificate policy to authenticate with a backend service using client certificate. The certificate needs to be installed into API Management first and is identified by its thumbprint .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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