[Qgis-user] Authentication Method Plugins in Python
Luigi Pirelli
luipir at gmail.com
Thu Nov 3 16:48:56 PDT 2022
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 <
qgis-user at lists.osgeo.org> 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
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20221104/7fc4acbe/attachment.htm>
More information about the Qgis-user
mailing list