使用WebSphere进行Worklight LTPA身份验证 [英] Worklight LTPA Authentication with WebSphere

查看:176
本文介绍了使用WebSphere进行Worklight LTPA身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我正在使用worklight 6.1和WebSphere 8

Hi I am using worklight 6.1 and WebSphere 8

我收到以下错误

[错误] FWLSE0059E:登录领域'WASLTPAModule'失败。 SRVE0190E:找不到文件:/login.html。 [project Streebo] SRVE0190E:找不到文件:/login.html [错误] FWLSE0117E:错误代码:4,错误描述:AUTHENTICATION_ERROR,错误消息:使用loginModule执行身份验证时发生错误WASLTPAModule,用户身份不可用。 [项目Streebo] [项目Streebo] [警告] 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
});

及其进入onSuccess

and its going in onSuccess

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);

};

所以它进来了成功函数及何时调用适配器并出现以下错误

So its coming in success function and when It calls adapter and following error comes

[错误] FWLSE0059E:登录领域'WASLTPAModule'失败。 SRVE0190E:找不到文件:/login.html。 [project Streebo]
SRVE0190E:找不到文件:/login.html
[错误] FWLSE0117E:错误代码:4,错误描述:AUTHENTICATION_ERROR,错误消息:使用loginModule WASLTPAModule执行身份验证时发生错误,用户身份不可用。 [项目Streebo] [项目Streebo]
[警告] SRVE0190E:找不到文件:/login.html

我已经登录了。在我的战争根文件夹中的html和loginError.html,并且在conf中也有login.html

And I already have login.html and loginError.html in root folder of my war and also have login.html in conf

请指导我解决此问题

赞赏

推荐答案

请确认您已将文件命名为login.html和loginError.html。另请确认您已将这些文件放在已部署到服务器的war文件的根目录中。您可以展开已部署的war文件以进行双重检查。另外,请确保您的login.html文件具有有效的结构,例如提供的示例:

Please verify you have named the files login.html and loginError.html exactly. Please also verify you have placed these in the root of the war file that you have deployed to your server. You can expand the war file you have deployed to double check. Also make sure your login.html file has valid structure such as the example provided:

<html>
  <head>
    <title>Login</title>
  </head>
  <body>
    <form method="post" action="j_security_check">
      <input type="text"
             id="j_username"
             name="j_username"
             placeholder="User name" />
      <input type="password"
             id="j_password"
             name="j_password"
             placeholder="Password" />
      <input type="submit" id="login" name="login" value="Log In" />
    </form>
  </body>
</html>

以及loginError.html页面的结构:

As well as the structure of your loginError.html page:

<html>
  <head>
    <title>Login Error</title>
  </head>
  <body>
    An error occurred while trying to log in.
  </body>
</html>

有关详细说明和疑难解答,请查看以下内容:

For more detailed instructions and troubleshooting please look at the following:

LTPA培训模块:
http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610/08_06_WebSphere_LTPA_based_authentication.pdf

LTPA信息中心说明
https://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/index.jsp?topic=%2Fcom.ibm .worklight.deploy.doc%2Fadmin%2Ft_configuring_WL_LTPA_realm.html

这篇关于使用WebSphere进行Worklight LTPA身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆