Hi,
I am implementing a simple WFS-T client which access the WFS-T via
digest/basic authentication.
And had the idea to add an 'editor' column, to show who was the last
editor of a point, coming from the 'REMOTE_USER'-environment variable.
Which I think Geoserver will also receive if the service is enabled with
authentication
Question: I know it is possible to use vars from the environment in the
SLD's. But can I also retrieve the value of 'REMOTE_USER' and squeeze
that into the wfs-t request to fill my 'editor' column?
Or other options/ideas to have insight in wfs-t editors?
Regards,
Richard Duivenvoorde
And had the idea to add an ‘editor’ column, to show who was the last
editor of a point, coming from the ‘REMOTE_USER’-environment variable.
Which I think Geoserver will also receive if the service is enabled with
authentication
Question: I know it is possible to use vars from the environment in the
SLD’s. But can I also retrieve the value of ‘REMOTE_USER’ and squeeze
that into the wfs-t request to fill my ‘editor’ column?
No, it is not available. We lack the machinery to make the environment cars available, that would be simple enough to add though, but I’m wondering if the wfs protocol allows to use expressions to start with in insert and update… I have no suitable access to the schemas right now (writing from my phone) but I have serious doubts.
Maybe you could try the connection life cycle scripts here:
http://docs.geoserver.org/stable/en/user/data/database/sqlsession.html
They can get the current geoserver user and run some SQL with it, maybe put it in a variable and then use it from a trigger?
Cheers
Andrea
Or other options/ideas to have insight in wfs-t editors?
Regards,
Richard Duivenvoorde
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users