Qlik Community

Ask a Question

Integration, Extension & APIs

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

Announcements
LINKEDIN LIVE: Democratizing data to enhance customer-centricity. JULY 29TH REGISTER TODAY
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 (4)
0 Replies