[QGIS-Developer] Use of QgsAuthManager

Alessandro Pasotti apasotti at gmail.com
Mon Mar 5 04:10:18 PST 2018


from python you can call:

QgsApplication.instance().authManager()


On Mon, Mar 5, 2018 at 1:04 PM, Richard Duivenvoorde <rdmailings at duif.net>
wrote:

> Hi Devs,
>
> Starting with a QGIS3 plugin which needs to retrieve data from REST
> server with a simple Basic Authentication scheme.
>
> Looking into:
> https://docs.qgis.org/testing/en/docs/pyqgis_developer_
> cookbook/authentication.html#term-authentication-method
>
> But this is old code, eg: QgsAuthManager.instance() is not there anymore?
>
> Anybody pointers to QGIS3 code to use QgsAuthManager, preferably with
> use of QgsNetworkManager?
>
> Regards,
>
> Richard Duivenvoorde
>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer




-- 
Alessandro Pasotti
w3:   www.itopen.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20180305/9ac44afd/attachment-0001.html>


More information about the QGIS-Developer mailing list