summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/network/access/qnetworkaccessmanager.cpp7
-rw-r--r--src/network/kernel/qauthenticator.cpp4
2 files changed, 10 insertions, 1 deletions
diff --git a/src/network/access/qnetworkaccessmanager.cpp b/src/network/access/qnetworkaccessmanager.cpp
index 2146749ea5..5b6919bc33 100644
--- a/src/network/access/qnetworkaccessmanager.cpp
+++ b/src/network/access/qnetworkaccessmanager.cpp
@@ -285,11 +285,16 @@ static void ensureInitialized()
again, without emitting the authenticationRequired() signal. If it
rejects the credentials, this signal will be emitted again.
+ \note To have the request not send credentials you must not call
+ setUser() or setPassword() on the \a authenticator object. This
+ will result in the the \l finished() signal being emitted with a
+ \l QNetworkReply with error \l AuthenticationRequiredError.
+
\note It is not possible to use a QueuedConnection to connect to
this signal, as the connection will fail if the authenticator has
not been filled in with new information when the signal returns.
- \sa proxyAuthenticationRequired()
+ \sa proxyAuthenticationRequired(), QAuthenticator::setUser(), QAuthenticator::setPassword()
*/
/*!
diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp
index ec3abdf029..3fa25368bb 100644
--- a/src/network/kernel/qauthenticator.cpp
+++ b/src/network/kernel/qauthenticator.cpp
@@ -206,6 +206,8 @@ QString QAuthenticator::user() const
/*!
Sets the \a user used for authentication.
+
+ \sa QNetworkAccessManager::authenticationRequired()
*/
void QAuthenticator::setUser(const QString &user)
{
@@ -244,6 +246,8 @@ QString QAuthenticator::password() const
/*!
Sets the \a password used for authentication.
+
+ \sa QNetworkAccessManager::authenticationRequired()
*/
void QAuthenticator::setPassword(const QString &password)
{