I have the following Python code:
UrlWS = "wss://" + hostname + "/app/" # Trailing slash is important!
userDirectory, userId = "MyDirectory", "MyUserID"
wsheader=['X-Qlik-User: UserDirectory=' + userDirectory + '; UserId=' + userId]
ws = websocket.create_connection (
UrlWS,
header = wsheader
)
I receive the following response:
{'jsonrpc': '2.0', 'method': 'OnAuthenticationInformation', 'params': {'loginUri': 'https://qap.mycompany.com:443/internal_forms_authentication/?targetId=42c6f9b3-a4e5-438a-bf00-46a6662b55bc', 'mustAuthenticate': True}}
The loginUri above goes to a login form. If I were to fill out and submit the form programmatically, would I get a ticket? And how would I pass that into the Websocket interface?
Note that I get the same response even if I omit the X-Qlik-User header.