[QGIS-Developer] [PyQGIS] adding a layer with an auth config ID leaks into the project
Denis Rouzaud
denis.rouzaud at gmail.com
Mon Oct 14 06:52:54 PDT 2019
Hi all,
I add a layer using an authentification config ID using PyQGIS:
uri = QgsDataSourceUri()
uri.setConnection(HOST, PORT, DB, None, None, QgsDataSourceUri.SslPrefer,
pg_auth_id)
In the project, the credentials are written in clear text in the project
file:
<datasource>dbname='pub' host=geodb.rootso.org port=5432 user='xxxxxx'
password='xxxxxx'
Is it possible to avoid this? How?
Cheers,
Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20191014/0a1e820c/attachment.html>
More information about the QGIS-Developer
mailing list