from python you can call:

QgsApplication.instance().authManager()


On Mon, Mar 5, 2018 at 1:04 PM, Richard Duivenvoorde <rdmaili...@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@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
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to