Skip to content

GetLegendGraphic and GetFeatureInfo requests on restricted WMS layers does not work from external software #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
danceb opened this issue May 14, 2024 · 2 comments

Comments

@danceb
Copy link

danceb commented May 14, 2024

Showing the legend and getting feature infos of restricted WMS layers works within the map viewer, as a user is logged in and the restrictions are verified there.

But this doesn't work if the legend and feature info is requested from external software like QGIS. Here only the GetMapRequest works properly.
AS QGIS is trying to get the legend I am getting the error Loaded legend image is broken and while trying to get the feature info I am getting the error Map "xyz" does not exist or is not permitted.

I am posting this here, but I think this is related to many services, which are included in this process: qwc-ogc-service for GetFeatureInfo requests and direct getLegendGraphic requests, of course the qwc-legend-service and all the auth-services.

Is it possible to include the authorization on this requests as well?

Thanks!

@manisandro
Copy link
Member

Indeed this is missing in qwc-feature-info-service and qwc-legend-service. This could be implemented analogously to https://github.com/qwc-services/qwc-ogc-service/blob/master/src/server.py#L52

@manisandro
Copy link
Member

Basic-Auth authentication has since been implemented in the feature-info and legend service.

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

No branches or pull requests

2 participants