向 Tomcat 組態新增 Servlet 篩選器
可使用 Windchill IDP 驗證篩選器,將 ThingWorx 未驗證的使用者重新導向至 Windchill 登入表單進行驗證認證。成功驗證之後,ThingWorx 應用程式會收到金鑰與使用者名稱。
篩選器在位於 ThingWorx Tomcat 安裝目錄之下的 web.xml 之 ThingWorx 端配置。請遵循下列步驟:
1. 停止 Apache Tomcat 與 Integration Runtime。
2. 將 ptc-identity-provider-authentication-filter-{版本}.jar 從 ThingWorx-Navigate-Release-<版本>-bundle.zip 中的 idp 資料夾複製到 ThingWorx Tomcat 安裝目錄下的 WEB-INF/lib 目錄中。
3. 轉至 web.xml 檔案,該檔案位於 Tomcat-install\webapps\Thingworx\WEB-INF\web.xml 中。
4. 從 Tomcat-install\webapps\Thingworx\WEB-INF 建立 web.xml 檔案之副本並將其儲存在其他位置。
5. 用 ThingWorx-Navigate-Release-<版本>-bundle\idp\twx-8.5.x 中的 web.xml 取代 Tomcat-install\webapps\Thingworx\WEB-INF 中的 web.xml。
6. 開啟 web.xml,然後在篩選器 (IdentityProviderAuthenticationFilter 與 IdentityProviderKeyValidationFilter) 中新增 [http or https]://[windchill-host]:[windchill-port]/windchill-web-app] 中的 Windchill Server 詳細資訊。
7. 啟動 Tomcat 與 Integration Runtime。
|
在 Windchill 的 web.xml 中定義 authparam 值之後 ,現成的值不再有效。欲擷取正確的資料,請變更 ptc-windchill-integration-connector-proxy 中 Session User Query Parameter 的值。
|