<div dir="ltr">so much time passed when we wrote all the infrastructure  and for what I remember when we designed the answer is NO... a new auth method is by design not accessible to python API. This for security reasons.<div><br></div><div>you can create it in C++ and load it dynamically adding it's shared object with other methods. Then you can use AuthManager python interface to use the method.</div><div><br></div><div>this is what I remember but are classes I do not use since time... so I can be wrong.</div><div><br></div><div>better to ask in dev channel<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div>Luigi Pirelli<br><br>**************************************************************************************************<br>* LinkedIn: <a href="https://www.linkedin.com/in/luigipirelli" target="_blank">https://www.linkedin.com/in/luigipirelli</a><br>* Stackexchange: <a href="http://gis.stackexchange.com/users/19667/luigi-pirelli" target="_blank">http://gis.stackexchange.com/users/19667/luigi-pirelli</a><br>* GitHub: <a href="https://github.com/luipir" target="_blank">https://github.com/luipir</a><br>* Book: <a href="https://www.packtpub.com/eu/application-development/mastering-geospatial-development-qgis-3x-third-edition" target="_blank">Mastering QGIS3 - 3rd Edition</a></div><div>* Hire a team: <a href="http://www.qcooperative.net" target="_blank">http://www.qcooperative.net</a><br>**************************************************************************************************</div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 4 Nov 2022 at 00:03, Shi Han Ng via Qgis-user <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I am looking for information to create new authentication method plugins.<br>
According to the documentation that I could find currently QGIS only<br>
supports plugins written in C++.<br>
However, I also found that the Python library contains QqsAuthMethod<br>
class which looks like something that I can use (see:<br>
<a href="https://qgis.org/pyqgis/master/core/QgsAuthMethod.html" rel="noreferrer" target="_blank">https://qgis.org/pyqgis/master/core/QgsAuthMethod.html</a>).<br>
<br>
I want to confirm if it is possible to use Python to write a new<br>
authentication method plugin for QGIS.<br>
If this is possible, is there a sample code or documentation that I<br>
could refer to?<br>
<br>
Thank you.<br>
<br>
Best regards,<br>
<br>
Shi Han Ng<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>