ЕС
Size: a a a
ЕС
IB
IB
ЕС
IB
IB
IB
ЕС
ЕС
ЕС
ИА
IS
DS
IS
DS
IS
DS
И
var http = require('http');
var qlikauth = require('qlik-auth');
http.createServer(function (req, res) {
//Define user directory, user identity and attributes
var profile = {
'UserDirectory': 'QLIK',
'UserId': 'demouser' //,
//'Attributes': [{'Group': 'DemoGroup'}]
}
//Exported Cert
var options = {
'Certificate': '.client.pfx',
'PassPhrase': 'password'
}
//Make call for ticket request
qlikauth.requestTicket(req, res, profile, options);
}).listen(1337, '0.0.0.0');
console.log('Server running at http://localhost:1337/');