wso2 - 将自定义授权令牌传递到 WSO2 中的后端没有给出预期的结果
问题描述
我正在使用 WSO2 APIM-2.6.0,我想传递一个自定义令牌。为此,我在中介策略 In flow 中使用了令牌交换机制。根据以下链接中 WSO2 文档中提供的说明,
使用的令牌交换 xml,
<sequence xmlns="http://ws.apache.org/ns/synapse" name="TokenExchange">
<property name="Custom" expression="get-property('transport', 'Custom')"/>
<property name="Authorization" expression="get-property('Custom')" scope="transport"/>
<property name="Custom" scope="transport" action="remove"/>
</sequence>
在 API Store 的管理控制台上,当我在 header 参数中提供现有的不记名令牌并执行时,响应是,
TypeError: Failed to fetch
Code: 200
但是,当我从 API Store UI 复制相同的 curl 命令并通过命令提示符运行时,它会给出响应并且工作正常。我怎样才能解决这个问题?
解决方案
推荐阅读
- sql - 如何将函数从熊猫时间重写为sql?
- spring - 使用 spring-boot:run 时 Spring Boot 无法解析属性变量
- leaflet - 如何使用 Bootleaf / esri-leaflet 查询具有多边形层的点?
- python - 为什么我所有的分类准确度分数都一样?
- wget - wget只下载一个url到index.html,如何显示index.html的内容?
- python - ValueError:BitVects 的长度必须相同(rdkit)
- powershell - 无需使用 out-file 立即导入文件 使用 PowerShell 仅转换基本类型
- android-fragments - 使用 FindViewById 时使用 ViewBinding 获取空对象异常,而everyhting 工作正常
- laravel - Laravel 8 - 如何跨多个字段查询全名中的一部分名称?
- python - Pyttsx3 删掉一些语音?