2014-05-23 53 views
0

我嘗試讓Single Sign On在我們的系統上工作。基本身份驗證已正常工作。 使用SSO時需要修改什麼? 我改變了像這裏的managed-beans.xml設置: http://www-10.lotus.com/ldd/appdevwiki.nsf/xpDocViewer.xsp?lookupName=IBM+Social+Business+Toolkit+SDK+documentation#action=openDocument&res_title=Endpoint_reference_SDK1.0&content=pdcontentSSO與SBTSDK

當執行一個例子,我仍然得到一個登錄窗體提示。 用Firebug觀察對象我可以看到正確的baseURL,但authType仍然處於「基本」狀態。 我是否只需要將managed-bean-class設置爲ConnectionsSSOEndpoint?

回答

1

是的。您需要將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"); 
+0

從Tomcat日誌文件,其中的SBT部署日誌:信息:無法找到LTPA令牌的請求。我如何讓Tomcat找到LTPA令牌? – grecky

+0

你能提供更多關於你的環境的信息嗎?你的應用程序使用哪個平臺?在標準配置中,Tomcat無法爲您提供必要的令牌。例如當您的應用程序在IBM Domino上運行時,可以使用SSO,並配置您的環境以便它們共享LTPA令牌的相同機密。 SBT將從您的cookies中獲取令牌,並將使用它來驗證連接的Websphere。 –