I am working with a web service that requires a valid username / password. From PyQt, I access the web service using the QNetworkAccessManager, which emits
authenticationRequired (QNetworkReply*, QAuthenticator*)
when (obviously) authentication is required. When I populate the user and psswd for QAuthenticator, everything works fine. However, I do not see how to break the loop when the user is invalid.
In the docs for authenticationRequired:
"If he rejects the credentials, that signal will be deleted again."
For invalid credentials, this signal is emitted again and again, and again ... Looking at the error code in the response showed 0. How should this cycle be broken or processed so that it ends with an error?
source
share