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:
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
Hi,
I would like to restrict different users to different geographic regions
based on a secret in the URL they are using to access MapServer.
I intend to use an inner join on a table with secrets / polygons, and
then use the run-time substitution in MapServer to insert the sanitized
secret
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