wso2 - 在 WSO2 的开发门户中更新默认 Curl 命令
问题描述
在开发门户上的 wso2 3.0 中 -> 转到应用程序 -> 生成密钥 -> 单击生成 curl 以获取令牌
它显示带有 localhost 的上图如何使用我的开发门户的域进行更改或如何将其更新为一些其他价值
解决方案
对于 APIM v320,您可以使用以下配置。
[[apim.gateway.environment]]
name = "Production and Sandbox"
type = "hybrid"
display_in_api_console = true
description = "This is a hybrid gateway that handles both production and sandbox token traffic."
show_as_token_endpoint_url = true
service_url = "https://localhost:${mgt.transport.https.port}/services/"
username= "${admin.username}"
password= "${admin.password}"
ws_endpoint = "ws://localhost:9099"
wss_endpoint = "wss://localhost:8099"
http_endpoint = "http://gw:${http.nio.port}"
https_endpoint = "https://gw:${https.nio.port}"
使用以下配置。
- show_as_token_endpoint_url
- https_endpoint
端点派生自 https 端点,并附加令牌上下文。
推荐阅读
- css - react-bootstrap 卡片标题内的换行符导致卡片向上移动
- java - 如何操作验证约束的验证值
- pandas - Pandas:使用其他数据框的索引值创建一个新的数据框
- ios - DTDeviceKit:设备类型空
- javascript - axios 未重定向并从重定向的 url 接收 cookie
- python - 向非线性方程组添加约束
- json - 如何在数据框中爆炸嵌套的json数组
- python - Pyautogui没有点击确切的位置
- python - 如何检查 Python 中另一个元素列表中的元素是否等于 none?
- shopify - Shopify Storefront API - productByHandle 未返回刚刚从先前的 api 调用返回的产品