当我将worklight 6.1项目迁移到7.0时,它已成功完成。然后,当我部署适配器并调用它。它给了我以下输出:
"错误":["运行时:适配器' GetUserInfo'安全测试没有用户 领域。"],"信息":[]," isSuccessful":false,"警告":[]}
我已从adapter.xml中的过程GetUserInfo
中删除了安全性测试,但我无法调用它。
这是我的authenticationconfig.xml代码:
<securityTests>
<mobileSecurityTest name="customTests">
<testDeviceId provisioningType="none"/>
<testUser realm="WASLTPARealm"/>
</mobileSecurityTest>
<webSecurityTest name="mobileTests">
<testUser realm="WASLTPARealm"/>
</webSecurityTest>
<!--
-->
<customSecurityTest name="SubscribeServlet">
<test realm="wl_directUpdateRealm" step="1"/>
<test isInternalUserID="true" realm="SubscribeServlet"/>
</customSecurityTest>
</securityTests>
<realms>
<realm loginModule="StrongDummy" name="SampleAppRealm">
<className>com.worklight.core.auth.ext.FormBasedAuthenticator</className>
</realm>
<!--IBM migration removed realm named WorklightConsole. It is not supported as of Worklight v6.2. Original xml kept in backup file.-->
<realm loginModule="rejectAll" name="SubscribeServlet">
<className>com.worklight.core.auth.ext.HeaderAuthenticator</className>
</realm>
<!-- For websphere -->
<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="StrongDummy">
<className>com.worklight.core.auth.ext.NonValidatingLoginModule</className>
</loginModule>
<loginModule name="requireLogin">
<className>com.worklight.core.auth.ext.SingleIdentityLoginModule</className>
</loginModule>
<loginModule name="rejectAll">
<className>com.worklight.core.auth.ext.RejectingLoginModule</className>
</loginModule>
<!-- For websphere -->
<loginModule name="WASLTPAModule">
<className>com.worklight.core.auth.ext.WebSphereLoginModule</className>
</loginModule>
</loginModules>
请帮我解决这个问题。
答案 0 :(得分:0)
您是否在application-descriptor.xml中指定了用户域?
<userIdentityRealms>my-realm</userIdentityRealms>