Azure APIM:使用发送请求模式发送客户端证书

问题描述 投票:0回答:1

在azure apim中是否可以使用策略“发送请求模式”来发送带有请求的证书?

<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>
azure azure-api-management
1个回答
1
投票

在azure apim中是否可以使用策略“发送请求模式”来发送带有请求的证书?

总之,有可能。

send-request策略将提供的请求发送到指定的URL,等待时间不超过设置的超时值。

政策声明如下:

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

使用authentication-certificate策略使用客户端证书向后端服务进行身份验证。证书需要首先安装到API Management中,并通过其指纹来标识

© www.soinside.com 2019 - 2024. All rights reserved.