[MapServer-dev] preserving extra query parameters with ogc features api

Michael Smith michael.smith.erdc at gmail.com
Sat Jun 21 11:03:58 PDT 2025


It does work if I use cookies, but using it via ArcGIS Pro or QGIS doesn't keep the cookies and if I pass something like items?f=json&access_token=xxxxxxx, none of the urls maintain the extra param. 

Mike


-- 

Michael Smith 
RSGIS Center – ERDC CRREL NH 
US Army Corps 





On 6/20/25, 4:05 PM, "Seth G" <sethg at geographika.co.uk <mailto:sethg at geographika.co.uk>> wrote:


Hi Mike,


I thought this had been addressed, see comments in https://github.com/MapServer/MapServer/pull/6400#issuecomment-936458600 <https://github.com/MapServer/MapServer/pull/6400#issuecomment-936458600> - although not documented (see https://github.com/MapServer/MapServer-documentation/issues/855 <https://github.com/MapServer/MapServer-documentation/issues/855>). 


You can add "oga_compliance_mode" "false" but this should be the default. Does your Mapfile have this set to "true" anywhere?


I'm using OGC Features API with security tokens passed via cookies, which MapServer treats as querystrings, so not sure why your setup isn't working,


Seth




--
web:https://geographika.net <https://geographika.net> & https://mapserverstudio.net <https://mapserverstudio.net>
mastodon: @geographika at mastodon.soci <mailto:geographika at mastodon.soci>al


On Fri, Jun 20, 2025, at 8:58 PM, Michael Smith via MapServer-dev wrote:
> Since we use authentication (via oauth2) with out OGC services (WFS) we 
> rely on carrying along an extra query parameter (access_token=XXXX) for 
> our queries. Now I’m trying to do this with OGC Features API and an 
> extra query parameters are removed from all the urls rather than just 
> being carried though. 
>
> Does anyone know a way to do this and carry custom params though the 
> OGC Features API access? Something that needs development?
>
>
> Michael Smith
> Remote Sensing / GIS Center
> US Army Corps
>
> _______________________________________________
> MapServer-dev mailing list
> MapServer-dev at lists.osgeo.org <mailto:MapServer-dev at lists.osgeo.org>
> https://lists.osgeo.org/mailman/listinfo/mapserver-dev <https://lists.osgeo.org/mailman/listinfo/mapserver-dev>






More information about the MapServer-dev mailing list