Re: [Qgis-developer] Authentification use from Python

2016-03-14 Thread Stefan Keller
Hi Larry and Luigi Thanks for your answers. 2016-03-04 9:16 GMT+01:00 Luigi Pirelli : > so Stefan... prepare your trip to the Qgis International conference in > Girona (Es) :) You're putting high social pressure on me :-) but it's hard for me to travel during academic semester

Re: [Qgis-developer] Authentification use from Python

2016-03-04 Thread Luigi Pirelli
Hi Larry your 4h workshop on new Qgis Auth System is "unufficially" approved (you'll receive official confirmation soon)... I suppose most of developers working with public institutions will are interested in it. so Stefan... prepare your trip to the Qgis International conference in Girona (Es)

Re: [Qgis-developer] Authentification use from Python

2016-03-03 Thread Larry Shaffer
Hi Stefan, Sorry for the delay in reply. OAuth should be able to be implemented as an authentication method plugin for the new system, thereby making it available for WxS connections, as well as other HTTP connections. I have a proposed talk and workshop on auth method plugins for the QGIS

Re: [Qgis-developer] Authentification use from Python

2016-02-27 Thread Stefan Keller
Hi, In a Python plugin [1] we implemented HTTP "Basic Authentication" and "NTLM authentication". Now I'm still looking for a solution using OAuth 2.0 for build-in WxS (WMS/WMTS, WFS) as well as for Python plugins. This seems to be also of some interest for other QGIS users [2]. The only code

Re: [Qgis-developer] Authentification use from Python

2016-01-12 Thread Bernhard Ströbl
Hi Larry, thanks for pointing these things out, however I am not sure how to continue. My situation is as follows: I have some 100 users that connect to our central PostgreSQL DB. Most of them have a personal DB account granting them write access to certain tables. Keeping their password in a

[Qgis-developer] Authentification use from Python

2016-01-12 Thread Bernhard Ströbl
Hi all, my goal is that my users do not save their PostgreSQL passwords in clear text but that they use the new Authentification system to do so. For my plugins I would need access to the PostgreSQL username and password, though. Is this generally possible in spite of security considerations

Re: [Qgis-developer] Authentification use from Python

2016-01-12 Thread Luigi Pirelli
Hi Bernhard be inspired by Boundless qgis-geoserver-plugin https://github.com/boundlessgeo/qgis-geoserver-plugin/blob/master/src/geoserverexplorer/gui/gsexploreritems.py#L502 I hope it's enough cheers Luigi Pirelli

Re: [Qgis-developer] Authentification use from Python

2016-01-12 Thread Bernhard Ströbl
Hi Luigi, many thanks! That was the key. I now have am = QgsAuthManager.instance() myAuthMethodConfig = QgsAuthMethodConfig() am.loadAuthenticationConfig(mykey,myAuthMethodConfig,True) myAuthMethodConfig.configMap() Bernhard Am 12.01.2016 um 15:58 schrieb Luigi Pirelli: Hi Bernhard be

Re: [Qgis-developer] Authentification use from Python

2016-01-12 Thread Larry Shaffer
Hi Bernhard, Please note that the Python support for direct access to the credentials via the auth method config *may* be completely removed for security reasons. Ideally, the expansion of credentials within a given auth method config would only be done within the core application and connection