kolsrud / qlik_rest_sdk

SDK for accessing the Qlik Sense REST APIs
MIT License
20 stars 4 forks source link

ConnectAsHub Examples #13

Closed marksouzacosta closed 2 years ago

marksouzacosta commented 3 years ago

First of all, great work! This is helping me a lot these past days. Thank you very much.

It is not clear to me what is the ConnectAsHub is about. Can you please add some examples of it on the Examples folder?

Regards, Mark Costa

kolsrud commented 2 years ago

Wow... For some reason I didn't see this request until now. Sorry for the extremely long delay!

When you do "ConnectAsHub" then the RestClient will set the "Context" part of the security header. This controls whether the request should be considered as coming from the Hub or the QMC. This affects rule evaluation (and thereby what you are allowed to see) as a security rule can be set to affect access from only one of those sources.

Some more info on this header can be found here:

https://help.qlik.com/en-US/sense-developer/August2021/Subsystems/ProxyServiceAPI/Content/Sense_ProxyServiceAPI/ProxyServiceAPI-Injected-Req-Headers-X-Qlik-Security.htm