Re: [mapserver-users] Spatial access restriction based on secret in URL, WMS Getcapabilities

2015-01-10 Thread Arne Kepp
If I go with environment variables and 1), how do I get SECRET_CODE into the URLs in the GetCapabilities document ? I'm assuming I need to modify wms_onlineresource ? It would be really cool if .map files automatically substituted $variables in general, beyond what [1] covers. -Arne 1:

Re: [mapserver-users] Spatial access restriction based on secret in URL, WMS Getcapabilities

2015-01-10 Thread Dan Little
If you launder everything through a script (in any of your favorite languages) you can capture the output stream before you send it back to the user. When my Mapserver-fu runs out I tend to go with scripting. On Sat, Jan 10, 2015 at 6:55 AM, Arne Kepp a...@tiledmarble.org wrote: If I go with

Re: [mapserver-users] Spatial access restriction based on secret in URL, WMS Getcapabilities

2015-01-10 Thread Dan Little
I'd probably do something with a script and some URL rewriting. For example, a URL like... - http://myserver.whee/path/SECRET_CODE/mapserv?[WMS parameters] Then do the following: 1. Low-buck: Use apache rewrite rules to set an environment variable. Then use the environment variable for my