[MS4W-Users] Secure WMS layer

Basques, Bob (CI-StPaul) bob.basques at ci.stpaul.mn.us
Wed Dec 2 12:01:19 EST 2015


You could try writing the layer to a separate file out alongside the MAPfile and then use an INCLUDE tag to add it to the mapfile.

It’s a pain to handle the validation for the include though.  I wish there was a CASE tag of some sort in MapServer mapfiles  that would run something alternate when an INCLUDE fails.

bobb




On Dec 2, 2015, at 10:24 AM, Darko Kovacevski via MS4W-Users <ms4w-users at lists.ms4w.com<mailto:ms4w-users at lists.ms4w.com>> wrote:

Hi all,

I have a token based authentication on the WMS I need to connect with. First, I need to get the token from https://testserver.com/ows-s-test/getSessionId, and then call the wms with the token from the response:
http://testserver.com/ows-m-test/wms?sessionId=T77MUKYGPOSGI3D1GFDVV1W0QV19CM&LAYERS=arec_table:KIS.CD_PARPARTS&STYLES=ekat_kis_parcels&FORMAT=image/png&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&CQL_FILTER=(OBJ_TYPE = 1)&SRS=EPSG:900999&BBOX=7537268.4646035,4655713.9248135,7537664.9453965,4655900.4051865&WIDTH=944&HEIGHT=444

Now, I have to add this layer in my mapfile and I don't have an idea how to do this. If someone knows how to achieve this, please help me.

BR,
Darko
_______________________________________________
MS4W-Users mailing list
MS4W-Users at lists.ms4w.com<mailto:MS4W-Users at lists.ms4w.com>
http://lists.ms4w.com/mailman/listinfo/ms4w-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ms4w.com/mailman/private/ms4w-users/attachments/20151202/f7eaa5de/attachment.html>


More information about the MS4W-Users mailing list