我正在为节点js使用qlik-auth库,现在正在验证ok,但只能使用静态预定义的用户对象。
此网址在 8000 端口上运行,此网址由 qlik虚拟代理直接访问。
我究竟如何在节点请求var?
中获取用户对象http.createServer(function (req, res) {
var profile = {
"UserDirectory": "dir",
"UserId": "usd",
"Attributes":[
{"type": "a type", "value": "a value"},
]
};
var options = {
Certificate: './client.pfx',
PassPhrase: 'dev',
BackUrl: 'http://ip/login.php',
};
qlikauth.requestTicket(req, res, profile, options);
}).listen(port, '0.0.0.0');