3 Replies Latest reply: Aug 3, 2017 12:12 PM by Ariel Eidelstein RSS

    Engine API - OnAuthenticationInformation

      Hi there,


      another Engine API question


      When connecting to a Sense Server using the Engine API (websockets), I initially make a GetDocList call to dynamically get the ID of the App I need to connect to.


      It seems that if I'm open the server hub in a tab before the Engine API app, it connects nicely.


      However, if not, I get a response like the one detailed here (https://help.qlik.com/sense/en-us/developer/index.html#../Subsystems/Qlik_Sense_Proxy_Service_API/Content/QPS API/Proxy_REST_API_Msgs_Proxy_To_Clients_OnAuthenticationInformation.htm?Highlight=OnAuthenticationInformation):


      { "jsonrpc":"2.0", "method":"OnAuthenticationInformation", "params": { "loginUri":"https://bar.company.com:4244/?targetUri=<foobar>", "mustAuthenticate":true } }

      What should I do if I get this response?  Clearly I can test for it, but should I redirect?  I try this, and it redirects back to my app... but it doesn't seem I can configure where it redirects back to.


      If anyone could help me, it'd me much appreciated.