技术文章 - CS404868

对于 Thingworx Navigate 中的所有连接器(包括 OOTB(开箱即用)和自定义连接器),执行 ValidateConnection 服务均失败

已修改: 27-May-2024   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • Windchill Navigate (formerly ThingWorx Navigate) 1.5.0 to 10.0

说明

  • 对于所有连接器(包括 OOTB(开箱即用)和自定义连接器)执行 ValidateConnection 服务均失败
  • 执行 ValidateConnection 服务立即失败,并出现以下错误,如下所示:
失败1.jpg
  • 安全日志报告以下错误:
 [L: WARN] [O: S.c.t.s.a.s.ThingworxSSOAuthenticator] [I: ] [U: ] [S: ] [P: ] [T: https-jsse-nio-8443-exec-4] Failed to get Grant Scopes page. Possible reason: list of scopes collected from the Connectors doesn't match list of Scopes defined in PingFederate
2023-11-08 12:06:26.531+0000 [L: ERROR] [O: S.c.t.s.a.s.SSOContext] [I: ] [U: Administrator] [S: ] [P: ] [T: https-jsse-nio-8443-exec-7] [ Failed to retrieve access token. ][ A redirect is required to get the users approval ]
  • PingFederate 服务器日志报告以下错误:
[org.sourceid.saml20.bindings.LoggingInterceptor] Received InMessageContext:
InMessageContext
entityId: twx-sp-client (null)
virtualServerId: null
Binding: oauth:authz
relayState: OD2EuP
params: {response_type=code, redirect_uri=https://<Thingworx_url>:8443/Thingworx/oauth2_authorization_code_redirect, scope=WINDCHILL WINDHCILL }
DEBUG [org.sourceid.oauth20.handlers.HandleAuthorizationRequest] Normal exception being handled during OAuth request processing: org.sourceid.oauth20.handlers.AuthorizationRequestException: invalid_scope: The requested scope is invalid, unknown, malformed, or exceeds that which the client is permitted to request.
  • Windchill Apache 访问日志报告以下错误:
GET /Windchill/oauth HTTP/1.1" 404 196 2
  • 重现问题的步骤:
  1. 复制OOTB ptc-windchill-integration-connector并提供任何名称作为 custom-ptc-connector,然后保存。
  2. 转至 custom-ptc-connector 的“配置”选项卡 > 更新/更改授权服务器范围设置( AuthorizationServerScopesSettings
    ) 参数值为错误值,即WINDHCILL ,而不是正确的授权服务器范围值作为WINDCHILL ,如下所示:
自定义.jpg
  1. 保存 custom-ptc-connector 中的更改
  2. 重新启动 ThingWorx 服务器
  3. 转到监控>集成连接器>检查所有应该失败的连接器的状态,如下面的屏幕截图所示:
远程事物.jpg
这是文章 404868 的 PDF 版本,可能已过期。最新版本 CS404868