0
votes

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

1 Answers

1
votes

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.