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

Gino Pirelli luipir at gmail.com
Thu Jun 5 01:48:00 PDT 2014


I Jürgen,

I did test without success... I don't know if you where able to manage
Manual vs Automatic attribute...

Probably this behaviour match this qt bug:
https://bugreports.qt-project.org/browse/QTBUG-16835

I would use QgsNetworkAccessManager to hide qgis proxy parameters

Regards

Luigi Pirelli (luigi.pirelli at faunalia.it - luipir at gmail.com)



On 5 June 2014 08:15, Jürgen E. <jef at norbit.de> wrote:

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140605/7ef32453/attachment.html>


More information about the Qgis-developer mailing list