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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
kevinpintokpa
Creator II
Creator II

Sense / QAP Engine API authentication possible with ticket?

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.

 

 

Labels (2)
0 Replies