Add ows_extra_params for OGC Features API#7360
Merged
geographika merged 11 commits intoMapServer:mainfrom Oct 17, 2025
Merged
Conversation
geographika
added a commit
to geographika/MapServer-documentation
that referenced
this pull request
Oct 10, 2025
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. |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a new
ows_extra_paramsmetadata 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
WEBlevel and overridden at theLAYERlevel 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