QRS API Authentication
Authentication management for the QRS API client.
Supports certificate-based and NTLM authentication. NTLM support requires the optional requests_ntlm dependency (install via pip install qrs-api-client[ntlm]).
- class qrs_api_client.auth.AuthManager(cert_path=None, key_path=None, root_cert_path=None, user_id=None, password=None)[source]
Bases:
objectManages authentication for connecting to Qlik Sense Enterprise, supporting certificate-based and NTLM authentication.
- get_auth(session: Session, auth_method='certificate', verify_ssl=True) Session[source]
Configures the given session with authentication and SSL settings.
- Parameters:
session – The requests session to configure.
auth_method – Either
"certificate"or"ntlm".verify_ssl –
True/Falsefor SSL verification, or a path to a root CA bundle. Ifroot_cert_pathis set on this instance andverify_sslis truthy, the root cert path is used instead.
- Raises:
ValueError – If an unknown authentication method is specified.