You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何修改WSO2 API Manager中的授权路径?

修改WSO2 API Manager授权路径的步骤

要将默认授权路径https://localhost:9443/oauth2/token修改为http://localhost:8280/token,按以下步骤操作:

  • 打开WSO2 APIM安装目录下的repository/conf/deployment.toml配置文件
  • 在文件中添加或更新以下配置项,覆盖默认的Token端点设置:
    # 配置Gateway的Token端点
    [apim.gateway.environment]
    token_endpoint = "http://localhost:8280/token"
    
    # 配置OAuth2服务的Token端点
    [oauth.endpoints]
    token_url = "http://localhost:8280/token"
    
  • 保存配置文件后,重启WSO2 API Manager服务,使配置生效

如果你的API通过自定义网关发布,需确保网关的HTTP端口(默认8280)可用,且无防火墙或端口占用问题。

内容的提问来源于stack exchange,提问作者Ehsan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.14 17:45:42