WSO2 APIM 3.0.0安装和配置发布服务器和存储的问题:“ invalid_callback-注册的回调与提供的URL不匹配”

问题描述 投票:1回答:2

安装WSO2 API管理器]的版本3.0.0之后,尝试访问PublisherStore时出现错误。”>

这是存储https://myhost.my.org:9443/store)的错误>

错误405-不允许的方法enter image description here

对于Publisher

,URL https://myhost.my.org:9443/publisher重定向到此URL ...

https://myhost.my.org:9443/authenticationendpoint/oauth2_error.do?oauthErrorCode=invalid_callback&oauthErrorMsg=Registered+callback+does+not+match+with+the+provided+url

...并显示此错误消息:

invalid_callback-注册的回调与提供的URL不匹配

invalid_callback message

注意:

  • 我可以正常访问管理页面(https://myhost.my.org:9443/carbon
  • [在localhost中每个文件(包括“ myhost.my.org”中,我都用“ .../wso2/wso2am/3.0.0/repository/conf”替换了“ carbon.xml”的所有出现,
  • 日志显示以下内容:(.../wso2/wso2am/3.0.0/repository/logs/wso2carbon.log

    WARN {org.wso2.carbon.identity.oauth2.OAuth2Service}提供的回调URL与提供的回调URL不匹配。

  • Stack:

    • Ubuntu 18.04
  • OpenJDK 11.0.4
  • WSO2 API管理器3.0
  • 遵循的安装步骤:https://apim.docs.wso2.com/en/latest/GettingStarted/quick-start-guide/

    安装命令:

sudo apt install openjdk-11-jre-headless
java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)

sudo wget https://product-dist.wso2.com/downloads/api-manager/3.0.0/downloader/wso2am-linux-installer-x64-3.0.0.deb

sudo apt install ./wso2am-linux-installer-x64-3.0.0.deb

sudo service wso2am-3.0.0 start

安装说明参考localhost / 127.0.0.1。但是我正在myhost.my.org上安装。

.../wso2/wso2am/3.0.0/repository/conf中手动修改的文件(用“ localhost”替换为“ myhost.my.org”,用“ 127.0.0.1”替换为“ this.is.my.ip”):

api-manager.xml
broker.xml
carbon.xml
datasources.properties
deployment.toml
event-broker.xml
log4j2.properties
messaging-event-broker.xml
metrics.xml
registry.xml
thrift-authentication.xml

有什么想法吗?谢谢!

安装WSO2 API管理器3.0.0版后,尝试访问发布服务器和商店时出现错误。这是商店中的错误(https://myhost.my.org:9443/store)错误405 ...

您必须在服务提供商中更新回调URL。

1)转到/carbon并编辑相关的SP。

enter image description here

2)在其中编辑OAuth应用。

enter image description here

您将看到这样的回调URL。

regexp=(https://localhost:9443/publisher/services/auth/callback/login|https://localhost:9443/publisher/services/auth/callback/logout)

用您的主机名更新所有出现的localhost。

同时保存OAuth应用和SP。

关于:

他是商店中的错误(https://myhost.my.org:9443/store

也许您可以在https://myhost.my.org:9443/devportal找到所需的内容>>

wso2 wso2-am
2个回答
1
投票

您必须在服务提供商中更新回调URL。


0
投票

关于:

他是商店中的错误(https://myhost.my.org:9443/store

© www.soinside.com 2019 - 2024. All rights reserved.