I'm very pleased to find that with Custom SQL Sessions
<http://docs.geoserver.org/stable/en/user/data/database/sqlsession.html>
I'm able to get the user passed onto my database.
I'm curious if there's any way to inject additional parameters, without
modifying GeoServer code.
I found EnviromentInjectionCallback
<https://github.com/geoserver/geoserver/blob/55c4740060eb2b8809ae935a510ac83eeb923313/src/main/src/main/java/org/geoserver/ows/EnviromentInjectionCallback.java#L39>
where
GSUSER gets injected. I see KVPs from the vendor specific env is pulled in.
So I could have a reverse proxy (or Filter) send these in. Wondering if
there's a better way to make this happen. The EnvFunction looks interesting.
Thanks.
Jason Newmoyer
Newmoyer Geospatial Solutions
843.606.0424
jason@anonymised.com