wso2 api 管理器 3.2.0 分析自动重定向到 https://localhost:9443/authenticationendpoint/oauth2_error
wso2 api manager 3.2.0 analytics redirect automatically to https://localhost:9443/authenticationendpoint/oauth2_error
为什么 wso2 api 管理器 3.2.0 分析自动重定向自
https://172.24.64.115:9643/analytics-dashboard/
到
https://localhost:9443/authenticationendpoint/oauth2_error.do?oauthErrorCode=invalid_callback&oauthErrorMsg=Registered+callback+does+not+match+with+the+provided+url.
还有以下异常:
注册的回调与提供的 url 错误
不匹配
仪表板配置:
## Authentication configuration
auth.configs:
type: apim
ssoEnabled: true
properties:
adminScope: apim_analytics:admin_carbon.super
allScopes: apim_analytics:admin openid apim:api_view apim:subscribe apim_analytics:monitoring_dashboard:own apim_analytics:monitoring_dashboard:edit apim_analytics:monitoring_dashboard:view apim_analytics:business_analytics:own apim_analytics:business_analytics:edit apim_analytics:business_analytics:view apim_analytics:api_analytics:own apim_analytics:api_analytics:edit apim_analytics:api_analytics:view apim_analytics:application_analytics:own apim_analytics:application_analytics:edit apim_analytics:application_analytics:view
adminUsername: admin
adminPassword: admin
kmDcrUrl: https://172.24.64.114:9443/client-registration/v0.17/register
kmTokenUrlForRedirection: https://172.24.64.114:9443/oauth2
kmTokenUrl: https://172.24.64.114:9443/oauth2
kmUsername: admin
kmPassword: admin
portalAppContext: analytics-dashboard
businessRulesAppContext : business-rules
cacheTimeout: 30
baseUrl: https://172.24.64.115:9643
grantType: authorization_code
publisherUrl: https://172.24.64.114:9443
devPortalUrl: https://172.24.64.114:9443
externalLogoutUrl: https://172.24.64.114:9443/oidc/logout
当 Analytics Dashboard deployment.yaml
的 baseUrl
下配置的主机名与 API 中配置的回调 URL 不匹配时,可能会发生以下错误] 管理器节点。
https://localhost:9443/authenticationendpoint/oauth2_error.do?oauthErrorCode=invalid_callback&oauthErrorMsg=Registered+callback+does+not+match+with+the+provided+url.
执行以下检查并相应地更新回调 URL 以克服该行为
- 使用管理员凭据登录到 API 经理的碳管理控制台
- 转到
Service Providers
> 列表 > sp_analytics_dashboard
并展开 OAuth2/OpenID Configurations
并单击 Edit
- 验证配置的回调 URL 是否与分析仪表板
deployment.yaml
中 baseUrl
中定义的主机名和端口匹配。如果没有,请更新它们。
更新一次后,保存配置并尝试场景。
为什么 wso2 api 管理器 3.2.0 分析自动重定向自
https://172.24.64.115:9643/analytics-dashboard/
到
https://localhost:9443/authenticationendpoint/oauth2_error.do?oauthErrorCode=invalid_callback&oauthErrorMsg=Registered+callback+does+not+match+with+the+provided+url.
还有以下异常: 注册的回调与提供的 url 错误
不匹配仪表板配置:
## Authentication configuration
auth.configs:
type: apim
ssoEnabled: true
properties:
adminScope: apim_analytics:admin_carbon.super
allScopes: apim_analytics:admin openid apim:api_view apim:subscribe apim_analytics:monitoring_dashboard:own apim_analytics:monitoring_dashboard:edit apim_analytics:monitoring_dashboard:view apim_analytics:business_analytics:own apim_analytics:business_analytics:edit apim_analytics:business_analytics:view apim_analytics:api_analytics:own apim_analytics:api_analytics:edit apim_analytics:api_analytics:view apim_analytics:application_analytics:own apim_analytics:application_analytics:edit apim_analytics:application_analytics:view
adminUsername: admin
adminPassword: admin
kmDcrUrl: https://172.24.64.114:9443/client-registration/v0.17/register
kmTokenUrlForRedirection: https://172.24.64.114:9443/oauth2
kmTokenUrl: https://172.24.64.114:9443/oauth2
kmUsername: admin
kmPassword: admin
portalAppContext: analytics-dashboard
businessRulesAppContext : business-rules
cacheTimeout: 30
baseUrl: https://172.24.64.115:9643
grantType: authorization_code
publisherUrl: https://172.24.64.114:9443
devPortalUrl: https://172.24.64.114:9443
externalLogoutUrl: https://172.24.64.114:9443/oidc/logout
当 Analytics Dashboard deployment.yaml
的 baseUrl
下配置的主机名与 API 中配置的回调 URL 不匹配时,可能会发生以下错误] 管理器节点。
https://localhost:9443/authenticationendpoint/oauth2_error.do?oauthErrorCode=invalid_callback&oauthErrorMsg=Registered+callback+does+not+match+with+the+provided+url.
执行以下检查并相应地更新回调 URL 以克服该行为
- 使用管理员凭据登录到 API 经理的碳管理控制台
- 转到
Service Providers
> 列表 >sp_analytics_dashboard
并展开OAuth2/OpenID Configurations
并单击Edit
- 验证配置的回调 URL 是否与分析仪表板
deployment.yaml
中baseUrl
中定义的主机名和端口匹配。如果没有,请更新它们。
更新一次后,保存配置并尝试场景。