<div dir="ltr">as far as I know/remember, nothing is changed from the AuthManager point of view... only the sigleton has been moved as wrote by Nyall, as most of singleton.<div><br></div><div class="gmail_extra"><br clear="all"><div><div class="m_-3863971104563213556gmail_signature" data-smartmail="gmail_signature">Luigi Pirelli<br><br>******************************<wbr>******************************<wbr>******************************<wbr>********<br>* LinkedIn: <a href="https://www.linkedin.com/in/luigipirelli" target="_blank">https://www.linkedin.com/in/<wbr>luigipirelli</a><br>* Stackexchange: <a href="http://gis.stackexchange.com/users/19667/luigi-pirelli" target="_blank">http://gis.stackexchange.com/<wbr>users/19667/luigi-pirelli</a><br>* GitHub: <a href="https://github.com/luipir" target="_blank">https://github.com/luipir</a><br>* Mastering QGIS 2nd Edition:<br>* <a href="https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition" target="_blank">https://www.packtpub.com/big-<wbr>data-and-business-<wbr>intelligence/mastering-qgis-<wbr>second-edition</a><br>* Hire me: <a href="http://goo.gl/BYRQKg" target="_blank">http://goo.gl/BYRQKg</a><br>******************************<wbr>******************************<wbr>******************************<wbr>********</div></div>
<br><div class="gmail_quote">On 3 June 2018 at 07:27, 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"><span>On 03-06-18 01:14, Nyall Dawson wrote:<br>
<br>
> The docs need fixing here (I'll do that). You shouldn't be creating<br>
> your own auth manager, but instead use the manager returned by<br>
> <br>
>     auth_man = QgsApplication.authManager()<br>
> <br>
> Nyall<br>
<br>
</span>Ah, Thanks Nyall: works!! :-)<br>
<br>
About docs: I had a look into the pyqgis docs:<br>
<br>
<a href="https://qgis.org/pyqgis/master/core/Auth/QgsAuthManager.html" rel="noreferrer" target="_blank">https://qgis.org/pyqgis/master<wbr>/core/Auth/QgsAuthManager.html</a><br>
<br>
But the code is very thin on comments/docs a thin code either:<br>
<br>
<a href="https://qgis.org/api/qgsauthmanager_8h_source.html" rel="noreferrer" target="_blank">https://qgis.org/api/qgsauthma<wbr>nager_8h_source.html</a><br>
<br>
<a href="https://qgis.org/api/qgsauthmanager_8cpp_source.html" rel="noreferrer" target="_blank">https://qgis.org/api/qgsauthma<wbr>nager_8cpp_source.html</a><br>
<br>
Is the plan to update the cookbook?<br>
<br>
<a href="https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/authentication.html" rel="noreferrer" target="_blank">https://docs.qgis.org/testing/<wbr>en/docs/pyqgis_developer_cookb<wbr>ook/authentication.html</a><br>
<br>
Or do we prefer to update docs in code so it will show up in api docs?<br>
I can help with the cookbook, though I'm not very much up to date with<br>
specific changes, but I can at least check things there and writup what<br>
I do now.<br>
<br>
Regards & thanks again,<br>
<br>
Richard<br>
<div class="m_-3863971104563213556HOEnZb"><div class="m_-3863971104563213556h5"><br>
______________________________<wbr>_________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">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/mailma<wbr>n/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a></div></div></blockquote></div><br></div></div>