Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-16835

QNetworkAccessManager must have a non signal/slot way to clear the authentication cache.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.7.0
    • None
    • Ubuntu 10.10, Nokia QT SDK

      Consider an application that asks the user for authentication creds. These are stored in a static var in the slot's for authentication required signal.

      However, there is no way to change the values provided by the slot once the auth creds had been accepted for once, since the provuide auth signal will nbever be fired again.

      To really be useful, the QNAM object must also present a non evented API, to set creds and clear them.

      The docs mention something about:
      QNetworkRequest::AuthenticationReuseAttribute

      However, for the life of me, I couldn't make any sense and figure out how this incorporates into clearing the creds so they'd be asked through the signal for the next time HTTP auth is needed. I thought a long the lines of setting to manual, and then setting to automatic again. But then I will need to know if the auth succeded and do more juggelry that would be ugly and un-natural.

      I will revert to delete the QNAM object and reinstnatiate it until this is fixed.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            sivang Sivan Greenberg
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes