<div dir="ltr"><div><br></div>from python you can call:<br><div>

<p style="margin:0px;text-indent:0px;white-space:pre-wrap">QgsApplication.instance().authManager()</p><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 5, 2018 at 1:04 PM, Richard Duivenvoorde <span dir="ltr"><<a href="mailto:rdmailings@duif.net" target="_blank">rdmailings@duif.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Devs,<br>
<br>
Starting with a QGIS3 plugin which needs to retrieve data from REST<br>
server with a simple Basic Authentication scheme.<br>
<br>
Looking into:<br>
<a href="https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/authentication.html#term-authentication-method" rel="noreferrer" target="_blank">https://docs.qgis.org/testing/<wbr>en/docs/pyqgis_developer_<wbr>cookbook/authentication.html#<wbr>term-authentication-method</a><br>
<br>
But this is old code, eg: QgsAuthManager.instance() is not there anymore?<br>
<br>
Anybody pointers to QGIS3 code to use QgsAuthManager, preferably with<br>
use of QgsNetworkManager?<br>
<br>
Regards,<br>
<br>
Richard Duivenvoorde<br>
<br>
<br>
______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div>