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.
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. this is what I remember but are classes I do not use since time... so I can be wrong. better to ask in dev channel Luigi Pirelli ************************************************************************************************** * LinkedIn: https://www.linkedin.com/in/luigipirelli * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli * GitHub: https://github.com/luipir * Book: Mastering QGIS3 - 3rd Edition <https://www.packtpub.com/eu/application-development/mastering-geospatial-development-qgis-3x-third-edition> * Hire a team: http://www.qcooperative.net ************************************************************************************************** On Fri, 4 Nov 2022 at 00:03, Shi Han Ng via Qgis-user < [email protected]> wrote: > Hi, > > I am looking for information to create new authentication method plugins. > According to the documentation that I could find currently QGIS only > supports plugins written in C++. > However, I also found that the Python library contains QqsAuthMethod > class which looks like something that I can use (see: > https://qgis.org/pyqgis/master/core/QgsAuthMethod.html). > > I want to confirm if it is possible to use Python to write a new > authentication method plugin for QGIS. > If this is possible, is there a sample code or documentation that I > could refer to? > > Thank you. > > Best regards, > > Shi Han Ng > _______________________________________________ > Qgis-user mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user >
_______________________________________________ Qgis-user mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
