是的。您需要將Managed Bean類更改爲com.ibm.sbt.services.endpoints.ConnectionsSSOEndpoint
,如文檔中所示。
<managed-bean>
<managed-bean-name>connectionsSSO</managed-bean-name>
<managed-bean-class>com.ibm.sbt.services.endpoints.ConnectionsSSOEndpoint</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>url</property-name>
<value>https://yourconnectionsserver</value>
</managed-property>
<!-- Trust the connection -->
<managed-property>
<property-name>forceTrustSSLCertificate</property-name>
<value>true</value>
</managed-property>
</managed-bean>
首先,檢查SSO是否正常工作。因爲如果它是基本身份驗證,它將通過瀏覽器提示(而不是登錄表單)詢問密碼。
沒有爲這裏的教程:troubleshooting issues with sso
要通過測試它自己,登錄服務器1,然後在同一瀏覽器會話(一個新的標籤或等),在下面的網址手動型:
http://yourconnectionsserver/communities/service/atom/communities/all
然後,你可以看到,如果問題涉及到端點或沒有。
要設置終點,確保服務與正確的端點名稱初始化,匹配的標籤託管bean名稱。
在JavaScript
:
var communityService = new CommunityService({endpoint:'connectionsSSO'});
在Java中:
CommunityService svc = new CommunityService("connectionsSSO");
從Tomcat日誌文件,其中的SBT部署日誌:信息:無法找到LTPA令牌的請求。我如何讓Tomcat找到LTPA令牌? – grecky
你能提供更多關於你的環境的信息嗎?你的應用程序使用哪個平臺?在標準配置中,Tomcat無法爲您提供必要的令牌。例如當您的應用程序在IBM Domino上運行時,可以使用SSO,並配置您的環境以便它們共享LTPA令牌的相同機密。 SBT將從您的cookies中獲取令牌,並將使用它來驗證連接的Websphere。 –