azure - Azure APIM:使用发送请求模式发送客户端证书
问题描述
在 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 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 中,并由其指纹识别。
推荐阅读
- automation - 自动设置 shadowsocks 代理服务器
- json - 使用 JOLT 在两个“表”之间进行内部连接
- spring - 将 1 个子实体用于 2 个父实体
- android - 为什么连接到 mediaBrowser 时没有调用 connectionCallback.onConnected()?
- android - EditText 输入类型显示不同的键盘
- javascript - Size(27900) 必须与形状 1,224,224,3 的乘积相匹配
- xml - Azure 数据工厂中的 XML 验证
- sql - 根据两列选择项目
- python - selenium python 无法获取 tbody 元素的文本
- javascript - TypeError: headers[key].trim 不是函数