node.js - Tivoli Access Manager WebSEAL 异步登录如何实现?
PHP中文网
PHP中文网 2017-04-17 11:43:30
[Node.js讨论组]

现在我有自己的登录界面,有webSEAL服务,应该如何在我自己的登录界面里调用webSEAL服务?
使用ajax?iframe?nodejs http(下面是nodejs http的代码,webSEAL会报错如下)?
最好是可以中断登录过程。
先谢谢了。

var http = require('http');
    var querystring = require('querystring');

    var post_options = {
        host: 'ip,
        port: '80',
        path: '/pkmslogin.form',
        method: 'POST',
        auth: 'username:123456',
        headers: {
            'Content-Type': 'text/html'
        }
    };
    var post_data = querystring.stringify({

        'login-form-type':'pwd'
    });


    // Set up the request
    var post_req = http.request(post_options, function(res) {
        res.setEncoding('utf8');
        res.on('data', function (chunk) {
            console.log('Response: ' + chunk);
        });
    });

    // post the data
    post_req.write(post_data);
    post_req.end();


webSEAL 错误信息:
Diagnostic Information

Method: POST
URL: /pkmslogin.form
Error Code: 0x38cf0430
Error Text: Not Implemented 

WebSEAL服务端返回的页面











Server Error






Server Error

< p> Access Manager WebSEAL could not complete your request due to an unexpected error.


Diagnostic Information

Method: POST

URL: /pkmslogin.form

Error Code: 0x38cf0430

Error Text: Not Implemented


Solution

Provide your System Administrator with the above information to assist in troubleshooting the problem.

PHP中文网
PHP中文网

认证高级PHP讲师

全部回复(0)
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号