这是 ISAM 和 MobileFirst 6.3 之间基于 LTPA 令牌的身份验证的设置: ISAM 设备正在托管登录页面并使用来自 MobileFirst 6.3 服务器的 ltpa.keys 生成 LTPA 令牌。ISAM 还连接到 LDAP 以对用户进行身份验证,最终将带有生成的 ltpaToken2 cookie 的请求转发到 MobileFirst 6.3 服务器。我已经配置了以下 authenticationConfig.xml
<securityTests>
...
<customSecurityTest name="ISAMforWorklight-web-securityTest">
<test realm="wl_antiXSRFRealm" />
<test realm="WASLTPARealm" isInternalUserID="true" />
<test realm="HeaderAuthRealm"/>
</customSecurityTest>
</securityTests>
<realms>
...
<realm loginModule="WASLTPAModule" name="WASLTPARealm">
<className>com.worklight.core.auth.ext.WebSphereFormBasedAuthenticator</className>
<parameter name="login-page" value="/login.html"/>
<parameter name="error-page" value="/loginError.html"/>
</realm>
</realms>
<loginModules>
...
<loginModule name="WASLTPAModule">
<className>com.worklight.core.auth.ext.WebSphereLoginModule</className>
</loginModule>
</loginMoudles>
Server.xml 包含:
<ltpa keysFileName="<app>/resources/security/ltpa.keys" keysPassword="whatever" expiration="120"/>
它抛出以下异常。据我了解,当在请求中提供 ltpaToke2 时,默认登录处理程序应该在 MobileFirst 中正常工作。不知道我在这里缺少什么。
==> trace.log <== [7/22/15 20:28:03:229 UTC] 000000eb id= com.worklight.core.auth.ext.WebSphereFormBasedAuthenticator I processRequest FWLSE0055I: 无法识别。[项目工作灯] [7/22/15 20:28:03:230 UTC] 000000eb id=
com.worklight.core.auth.ext.WebSphereFormBasedAuthenticator 1 processRequest 处理请求无法识别 [项目工作灯] [7/22/15 20 :28:03:230 UTC] 000000eb id=
com.worklight.core.auth.ext.WebSphereFormBasedAuthenticator < processRequest RETURN