Opened 20 months ago
Last modified 6 days ago
#23800 needinfo defect
WMS username/password login
| Reported by: | anonymous | Owned by: | anonymous |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core imagery | Version: | |
| Keywords: | authentication | Cc: |
Description
I've been trying to use a WMS self hosted on Geoserver WMS with plain username/password (Since it's internally hosted security doesn't matter) but there's just no way to get this to work
https://username:password@address:port/... the rest doesn't work
https://address:port/... bla bla ... &username=.....&password=.... doesn't work
only if I enable anonymous login on the Geoserver it works.
Note - in QGIS setting username and password works right out of the box..
just saying.. in QGIS it works 100% and in JOSm it works 0%
Any thoughts how to make this work like in QGIS?
thanks
Attachments (0)
Change History (5)
comment:1 by , 20 months ago
| Component: | Core → Core imagery |
|---|---|
| Keywords: | authentication added |
comment:2 by , 20 months ago
| Owner: | changed from to |
|---|---|
| Status: | new → needinfo |
comment:3 by , 6 days ago
This is still actual. How can I submit the data which one would need to figure out why it's not working?
wms[21]:http://username:password@192.168.90.44:8083/geoserver/ows?FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.3.0&SERVICE=WMS&REQUEST=GetMap&LAYERS=ort:2025 Middle Quirino Hill&STYLES=&CRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox}
That's what I have in the WMS for JOSM.
If I enable anonymous on the geoserver, it works.
if I disable anonymous it doesn't work
same credentials on QGIS work, so it's not that the credentials are wrong
comment:4 by , 6 days ago
Currently it seems you need to specify the username and password as HTTP header:
- Header name: Authorization
- Header value: "Basic XXX", whereas XXX is
echo -n username:password |base64, i.e. username and password separated by a colon and then base64 coded.
comment:5 by , 6 days ago
Thank you for the reply. Can you give an example how that would look like in the wms entry?



According to #7122 authentication for WMS server should be supported.
Please, could you start JOSM from a terminal/console (On Windows there should be an additional menu item "JOSM (Debug)" or similar). This will show you more information about the connection to the WMS server which might be useful.
The first parts of the status report would be helpful:
Thanks for your report, however your ticket is incomplete and therefore not helpful in its current form.
Please add all needed information according to this list:
To ensure that all technical relevant information is contained, create new tickets by clicking in JOSMs Main Menu on Help →
Report Bug.
Remember: This is a generic notice so we don't need to write the same stuff again and again. It may only apply in parts to the specific case!