将 Mobilefirst 与 DataPower 集成时出错
Error Integrating Mobilefirst with DataPower
我正在学习本教程https://mobilefirstplatform.ibmcloud.com/blog/2016/02/20/datapower-integration/
我有 mobilefirst Studio 7.1.0.00-20160528-1648 和 datapower 7.1.0.4
我在 Datapower ant 中安装了模式,它可以工作,但是当我 运行 应用程序时,当我发送凭据时,我再次获得登录表单。
我可以在 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 中进行更多配置
"The security token was generated on another server using different keys"。这强烈指向 LTPA 密钥的不匹配问题。确保(仔细检查)您对 Liberty 和 DataPower 使用相同的 LTPA 密钥。
登录到您的 DataPower 域。在搜索框中,搜索 "AAA Policy".
- 在"FormLTPA_Form2LTPA"→"Postprocessing"。重新上传您的 LTPA 密钥文件并重新输入密码。应用并保存。
- 在"FormLTPA_Verify"→"Authentication"。重新上传您的 LTPA 密钥文件并重新输入密码。应用并保存。
当然要确保您的客户端应用程序指向您的 DataPower IP 和端口,而不是直接指向 MFP 服务器。
很多步骤都可能出错,因此请重新阅读博客 post 以确保您没有遗漏任何步骤。例如,我经常忘记编辑我的 server.xml 以匹配我测试的 user/password。
我正在学习本教程https://mobilefirstplatform.ibmcloud.com/blog/2016/02/20/datapower-integration/
我有 mobilefirst Studio 7.1.0.00-20160528-1648 和 datapower 7.1.0.4
我在 Datapower ant 中安装了模式,它可以工作,但是当我 运行 应用程序时,当我发送凭据时,我再次获得登录表单。
我可以在 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 中进行更多配置
"The security token was generated on another server using different keys"。这强烈指向 LTPA 密钥的不匹配问题。确保(仔细检查)您对 Liberty 和 DataPower 使用相同的 LTPA 密钥。
登录到您的 DataPower 域。在搜索框中,搜索 "AAA Policy".
- 在"FormLTPA_Form2LTPA"→"Postprocessing"。重新上传您的 LTPA 密钥文件并重新输入密码。应用并保存。
- 在"FormLTPA_Verify"→"Authentication"。重新上传您的 LTPA 密钥文件并重新输入密码。应用并保存。
当然要确保您的客户端应用程序指向您的 DataPower IP 和端口,而不是直接指向 MFP 服务器。
很多步骤都可能出错,因此请重新阅读博客 post 以确保您没有遗漏任何步骤。例如,我经常忘记编辑我的 server.xml 以匹配我测试的 user/password。