Skip to main content

Integration, Extension & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Action-Packed Learning Awaits! QlikWorld 2023. April 17 - 20 in Las Vegas: REGISTER NOW
Showing results for 
Search instead for 
Did you mean: 
Contributor II
Contributor II

Get authenticated message shows error socket closed


I'm trying to get authenticated user outside qlik sense using enigma.js and my code displays error like,

Screenshot (5).png

For your kind information, I'm already logged into qlik sense.

My code:

const enigma = require('enigma.js');

const schema = require('enigma.js/schemas/12.20.0.json');

const SenseUtilities = require('enigma.js/sense-utilities');

const config = {

    host: 'Host.Name.Com',

    secure: true,

    port: 443,

    prefix: "/Proxy prefix/",


const url = SenseUtilities.buildUrl(config);


const session = enigma.create({ schema, url,

    listeners: {

        "notification:OnAuthenticationInformation": ( authInfo ) => {//notification:

            if ( authInfo.mustAuthenticate ) {

                location.href = authInfo.loginUri;





    global.getAuthenticatedUser().then(user => console.log(user));


Any help?

what am i doing wrong? please suggest.


Bhargav Patel

0 Replies