【发布时间】:2014-05-20 14:22:26
【问题描述】:
您好,我正在使用 Worklight 6.1 和 WebSphere 8
我收到以下错误
[错误] FWLSE0059E: 登录领域“WASLTPAModule”失败。 SRVE0190E: 找不到文件:/login.html。 [project Streebo] SRVE0190E:找不到文件:/login.html [错误] FWLSE0117E:错误代码:4,错误描述:AUTHENTICATION_ERROR,错误消息:使用 loginModule WASLTPAModule 执行身份验证时出错,用户身份不可用。 [project Streebo] [project Streebo] [WARNING] SRVE0190E:找不到文件:/login.html
这是我做过的事情
authenticationConfig.xml
<mobileSecurityTest name="mobileTests">
<testAppAuthenticity/>
<testDeviceId provisioningType="none" />
<testUser realm="WASLTPARealm" />
</mobileSecurityTest>
<!-- For websphere -->
<realm name="WASLTPARealm" loginModule="WASLTPAModule"><className>com.worklight.core.auth.ext.WebSphereFormBasedAuthenticator</className>
<parameter name="login-page" value="/login.html"/>
<parameter name="error-page" value="/loginError.html"/>
</realm>
<!-- For websphere -->
<loginModule name="WASLTPAModule">
<className>com.worklight.core.auth.ext.WebSphereLoginModule</className>
</loginModule>
适配器条目
WASAuth.xml
<procedure name="getAuth" securityTest="mobileTests"/>
WASAuth-impl.js
function getAuth() {
return {'key1':'authh'};
}
挑战处理程序
var challengeHandler;
challengeHandler = WL.Client.createChallengeHandler('WASLTPARealm');
initOptions.js
connectOnStartup : false,
main.js
function wlCommonInit(){
WL.Client.connect({
onSuccess: onConnectSuccess,
onFailure: onConnectFailure
});
以及它的成功
function onConnectSuccess() {
alert('on connect success in wlCommonInit() in main.js');
var invocationData = {
adapter : 'WASAuth',
procedure : 'getAuth',
parameters : []
};
var options = {
onSuccess : function(res) {
alert('procedure getAuth success with res: '+res);
},
onFailure : function() {
alert('procedure getAuth Failures');
}
};
WL.Client.invokeProcedure(invocationData, options);
};
所以它的成功功能以及当它调用适配器并出现以下错误时
[错误] FWLSE0059E: 登录领域“WASLTPAModule”失败。 SRVE0190E: 找不到文件:/login.html。 [项目斯特里博] SRVE0190E: 找不到文件:/login.html [错误] FWLSE0117E:错误代码:4,错误描述:AUTHENTICATION_ERROR,错误消息:使用 loginModule WASLTPAModule 执行身份验证时出错,用户标识不可用。 [项目 Streebo] [项目 Streebo] [警告] SRVE0190E:找不到文件:/login.html
我已经在我的战争根文件夹中有 login.html 和 loginError.html 并且在 conf 中也有 login.html
请指导我解决此问题
欣赏
【问题讨论】:
标签: ibm-mobilefirst