2016-06-13 50 views
0

整合Mobilefirst我下面這個教程https://mobilefirstplatform.ibmcloud.com/blog/2016/02/20/datapower-integration/錯誤使用DataPower

我mobilefirst工作室7.1.0.00-20160528-1648和DataPower的7.1.0.4

我安裝DataPower的螞蟻它的工作模式,但是當我運行該應用程序,當我發送證書時,我再次獲取登錄表單。

我可以看到下一個錯誤的messages.log

[6/13/16 8:45:14:228 CST] 000000f6 com.ibm.ws.security.token.internal.TokenManagerImpl I CWWKS4001E: The security token cannot be validated. This can be for the following reasons 1. The security token was generated on another server using different keys. 2. The token configuration or the security keys of the token service which created the token has been changed. 3. The token service which created the token is no longer available.

我啓用跟蹤com.ibm.ws.security

我看到錯誤

[6/13/16 8:44:08:801 CST] 00000101 id=46978bb4 com.ibm.ws.security.token.ltpa.internal.LTPAToken2 1 Caught BadPaddingException while decrypting token, this is only a critical problem if decryption should have worked. javax.crypto.BadPaddingException: Given final block not properly padded

我跑應用程序在IOS和Android的應用程序和我得到的錯誤在2個環境中

在android也我得到這個錯誤:

06-13 14:44:50.928 2715-3738/com.HybridDataPower W/ResponseProcessCookies: Cookie rejected: "BasicClientCookie[version=0,name=forms.mypattern_MFPIntegration_Web_HTTPS_FormLTPA.FormsTarget,domain=192.168.233.139,path=/j_security_check,expiry=null]". Illegal path attribute "/j_security_check". Path of origin: "/DataPower/apps/services/api/HybridDataPower/android/query" 06-13 14:44:50.930 2715-2734/com.HybridDataPower W/org.apache.http.client.protocol.ResponseProcessCookies: Jdk14Logger.log in Jdk14Logger.java:103 :: Cookie rejected: "BasicClientCookie[version=0,name=forms.mypattern_MFPIntegration_Web_HTTPS_FormLTPA.FormsTarget,domain=192.168.233.139,path=/j_security_check,expiry=null]". Illegal path attribute "/j_security_check". Path of origin: "/DataPower/apps/services/api/HybridDataPower/android/query"

我使用的lpa.keys默認密碼WebAS

我在DataPower的使用HTTP處理程序服務

我不知道如果我需要更多的配置DataPower或Mobilefirst

回答

0

「安全令牌在使用不同密鑰的另一臺服務器上生成」。這強烈指出了LTPA密鑰存在的不兼容問題。確保(仔細檢查)您是否爲Liberty和DataPower使用相同的LTPA密鑰。

登錄到您的DataPower域。在搜索框中搜索「AAA策略」。

  • 在「FormLTPA_Form2LTPA」→「後處理」中。重新上傳您的LTPA密鑰文件並重新輸入密碼。應用並保存。
  • 在「FormLTPA_Verify」→「認證」中。重新上傳您的LTPA密鑰文件並重新輸入密碼。應用並保存。

當然,請確保您的客戶端應用程序指向您的DataPower IP和端口,而不是直接指向MFP服務器。

很多步驟可能會出錯,所以重新閱讀博客文章,以確保您沒有錯過任何。例如,我經常忘記編輯我的server.xml以匹配我的測試用戶/密碼。