【问题标题】:Azure APIM: Send a client certificate with send-request modeAzure APIM:使用发送请求模式发送客户端证书
【发布时间】:2020-05-26 07:36:46
【问题描述】:

是否可以在 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】:

    是否可以在 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 管理中并通过其指纹识别

    【讨论】:

    • 谢谢!我之前尝试过,但我只需要将其移至发送请求模式的底部。
    猜你喜欢
    • 1970-01-01
    • 2012-03-28
    • 1970-01-01
    • 1970-01-01
    • 2013-06-06
    • 2018-12-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多