首页 > 解决方案 > 在 WSO2 的开发门户中更新默认 Curl 命令

问题描述

在此处输入图像描述

在开发门户上的 wso2 3.0 中 -> 转到应用程序 -> 生成密钥 -> 单击生成 curl 以获取令牌
它显示带有 localhost 的上图如何使用我的开发门户的域进行更改或如何将其更新为一些其他价值

标签: wso2wso2-am

解决方案


对于 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}"

使用以下配置。

  1. show_as_token_endpoint_url
  2. https_endpoint

端点派生自 https 端点,并附加令牌上下文。


推荐阅读