qgisinspiretools / qgis-wfs20-client-plugin

QGIS Plugin for OGC Web Feature Service 2.0.0
11 stars 8 forks source link

Support QGIS PKCS12 record for authentication #26

Open vovchykbratyk opened 2 years ago

vovchykbratyk commented 2 years ago

Is it possible to support QGIS client certificate record to present to a WFS URL instead of username/password? Thanks!

ejn commented 2 years ago

Having had a quick look at this, it is probably necessary to use the QgsNetworkAccessManager instead of a simple QNetworkAccessManager and rework the HTTP request handling (using blockingGet()?), which if my understanding is correct would let "core" QGIS take care of more of the work (incl. authentication).

This would probably be a good idea in any case. Pull requests very welcome!

vovchykbratyk commented 2 years ago

I'm pretty unfamiliar with QGIS python API but I am starting to slowly learn it. I won't have any PRs ready very soon, but I will take this as a task to work on. Best wishes!