Skip to content

Add ows_extra_params for OGC Features API#7360

Merged
geographika merged 11 commits intoMapServer:mainfrom
geographika:ogc-extraparams
Oct 17, 2025
Merged

Add ows_extra_params for OGC Features API#7360
geographika merged 11 commits intoMapServer:mainfrom
geographika:ogc-extraparams

Conversation

@geographika
Copy link
Copy Markdown
Member

This PR adds a new ows_extra_params metadata entry allows you to append additional query parameters to all URLs generated by MapServer for the OGC Features API. This can be used, for example, to include authentication tokens such as JSON Web Tokens (JWT) in your API requests.

Parameters will be persisted to all URLs includes in the API JSON responses. Parameters can be set at the WEB level and overridden at the LAYER level if required.

See initial discussions at https://lists.osgeo.org/pipermail/mapserver-dev/2025-September/017280.html

The HTML templates (plain and Bootstrap) have all been updated to include these parameters in their URLs, and {{ template.extra_params }} is available in any custom templates.

Documentation preview available at https://geographika.github.io/MapServer-documentation/ogc/ogc_api.html#web-object-metadata

geographika added a commit to geographika/MapServer-documentation that referenced this pull request Oct 10, 2025
@geographika geographika added this to the 8.6.0 Release milestone Oct 15, 2025
@geographika
Copy link
Copy Markdown
Member Author

This has been tested in a couple of deployments. If there are no further comments / questions, I'll merge this tomorrow in time for a beta release.

@geographika geographika merged commit 265c9d9 into MapServer:main Oct 17, 2025
17 checks passed
rouault added a commit to rouault/mapserver that referenced this pull request Feb 12, 2026
and make it default to true.

That parameter was removed per PR MapServer#7360 which added support for a
extra_params configuration item.

This PR adds the param names from the extra_params as allowed parameters
to validate the query parameters. This is a pre-requisite for the
to-come support of "Queryables as Query Parameters" of
OGC API Features - Part 3 : https://docs.ogc.org/is/19-079r2/19-079r2.html#queryables-query-parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant