Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-22 Thread Alessandro Pasotti
On Tue, Jun 22, 2021 at 12:47 PM Marco Casalboni wrote: > I'm sorry to bother you more. > With the examples provided I can easily set up my role permissions, but it > works on layers only: the accessControlFilter.layerPermissions doesn't seem > to take care of layer groups in the GetCapabilities

Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-22 Thread Marco Casalboni
I'm sorry to bother you more. With the examples provided I can easily set up my role permissions, but it works on layers only: the accessControlFilter.layerPermissions doesn't seem to take care of layer groups in the GetCapabilities request. If the layer group has 0 layers because none of the

Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-21 Thread Marco Casalboni
I followed the examples and It works likes a charm, many thanks Il lun 21 giu 2021, 10:19 Luigi Pirelli ha scritto: > Old but good article (in Spanish) by German Carrillo about contiguring > access credential granularity to QGIS Server data > > >

Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-21 Thread Luigi Pirelli
Old but good article (in Spanish) by German Carrillo about contiguring access credential granularity to QGIS Server data https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/ Luigi Pirelli

Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-21 Thread Alessandro Pasotti
On Mon, Jun 21, 2021 at 10:06 AM Marco Casalboni wrote: > Thank you for the accurate informations, this will be very helpful. > > One more thing: is it possible to filter the wms GetCapabilities request's > layer list according to an authenticated user (or role)? > Yes:

Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-21 Thread Marco Casalboni
Thank you for the accurate informations, this will be very helpful. One more thing: is it possible to filter the wms GetCapabilities request's layer list according to an authenticated user (or role)? regards, Marco Il giorno ven 18 giu 2021 alle ore 03:29 Germán Carrillo <

Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-17 Thread Germán Carrillo
Hi Marco, I published a blog where I configured permissions based on user roles for a QGIS Server workshop. Keep in mind that it was just a demo. It was based on some plugin examples by Alessandro Pasotti. One single project, one single WMS, several user roles and different permissions (based

Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-17 Thread Thomas Gratier
Hi, You may create a QGIS Server plugin to manage your permissions e.g https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/server.html#accesscontrol-py Regards Thomas ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info:

[Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-16 Thread Marco Casalboni
Hi all, this is my setup: Server: linux debian 10 QGIS server version: 3.18 Http server: apache Is it possible to serve WMS layers with the http basic authentication? I think I can do this by configuring an apache virtual host BUT What if I want to configure the layer list according to a