Yes, very likely to be related to the templates. I just checked one of our
systems and I had modified all the templates to include the custom querystring
parameter:
{{ template.api_root }}/collections/{{ response.id }}?f=json&token={{
template.params.token }}
Seth
--
web:https://geographika.net & https://mapserverstudio.net
mastodon: @[email protected]
On Mon, Jun 23, 2025, at 2:21 PM, Michael Smith wrote:
> Could this be due to the fact that I am using the
> mapserver/ogcapi/templates/html-plain/ template for ogcapi?
>
> Mike
>
> --
>
> Michael Smith
> RSGIS Center – ERDC CRREL NH
> US Army Corps
>
>
>
>
>
> On 6/20/25, 4:05 PM, "Seth G" <[email protected]
> <mailto:[email protected]>> 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: @[email protected]
> <mailto:[email protected]>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
>> [email protected] <mailto:[email protected]>
>> https://lists.osgeo.org/mailman/listinfo/mapserver-dev
>> <https://lists.osgeo.org/mailman/listinfo/mapserver-dev>
_______________________________________________
MapServer-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-dev