0

I'm building a small intranet site to display geodata easily. Using QGIS (2.18) and QGIS2WEB (2.34.0) I prepared geodata and created it as OpenLayers output as index.html.

A WMS layer, which is protected by username and password, is also part of the output. At the moment, however, an input mask opens, which asks for the username and password. After input, everything works correctly. But I don't want the users of the intranet site to have to enter a username or password.

Unfortunately, the following the proposal, circulating here in the forum, does not work. The input mask still appears.

http://user:password@geoinfo.xxx.de/wms10/72_sd_17_ds_gras.exe

There is no need to hide the data. They can be in the source text.

Is there another way to insert username and password 'automatically'?

  • 2
    It is extremely bad security practice to send passwords in the clear on an HTTP link. If the service is password protected, you should honor that intention, or convince the provider to remove the password from internal addresses. – Vince Aug 24 '18 at 12:23
  • I agree in principle, but this is irrelevant in this particular case. – jan Aug 24 '18 at 13:25
  • 1
    Could you cascade the WMS layer though another WMS server – nmtoken Aug 24 '18 at 14:10
  • Unfortunately, this is not possible. – jan Aug 25 '18 at 10:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.