[Qgis-developer] How to change credentials using QgsCredentials and QgsNetworkAccessManager

Jürgen E. Fischer jef at norbit.de
Wed Jun 4 23:15:09 PDT 2014


Hi Gino,

On Wed, 04. Jun 2014 at 19:46:07 +0200, Gino Pirelli wrote:
> 7) auth is required by the server, but QNetwarkAccessManager use cached
> credentials and NO signal AuthenticationRequired => it doesn't enter
> in QgisApp::namAuthenticationRequired => no credential are requested and
> continue with the old credentials

Try setting the QNetworkRequest::AuthenticationReuseAttribute
of your QNetworkRequest to QNetworkRequest::Manual.


Jürgen

-- 
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-31
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de
QGIS PSC member (RM)      Germany                      IRC: jef on FreeNode                         

-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502



More information about the Qgis-developer mailing list