Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

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/Co... 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.

thanks,

Shane.

4 Replies
Not applicable
Author

Hi,

I've got a little further with this, and I redirect to the URL in the response's params.loginUri.

The URL looks something like this:

https://server/windows_authentication/?targetId=464627fe-682f-4b30-bf02-56d1edef05f2

So, I redirect (using window.location.href JavaScript) and this then redirects to:

https://server/app/?qlikTicket=j_jWgzEZHMRquKU4

However, the 'app/' shouldn't be in there (it results in a 404)... the 'correct' URL should be:

https://server/?qlikTicket=j_jWgzEZHMRquKU4

Is there any way that this can be configured? The web socket endpoint URI is wss://server/app/ btw.

Thanks,

Shane.

Not applicable
Author

Anyone?

arieidel
Partner - Creator II
Partner - Creator II

Hello Shane, have you solved this? I'm facing the same issue. Thanks!

akeswani
Creator
Creator

Guys,

I am getting the same issue, were you able to resolve this ?