Modify

Opened 10 years ago

Closed 6 years ago

Last modified 6 years ago

#7122 closed enhancement (fixed)

WMS authentication

Reported by: skyper Owned by: team
Priority: normal Milestone: 16.02
Component: Core Version:
Keywords: WMS authentication Cc:

Description (last modified by skyper)

Stripped of #7086 to get the enhancement in a seperate ticket.

Some GUI option to set login data for WMS would be nice.

This is just an example. Remember JOSM sends your OSM login data to this server.

http://security.demo.52north.org/wss/service/wms_demis/httpauth?

demo accounts:

alice/alice: Full access
bob/bob: Limited access
guest/guest: Very limited access

Attachments (0)

Change History (5)

comment:1 Changed 10 years ago by skyper

Description: modified (diff)

comment:2 Changed 6 years ago by wiktorn

Owner: changed from team to wiktorn
Status: newassigned

comment:3 Changed 6 years ago by simon04

Milestone: 16.02
Owner: changed from wiktorn to team
Status: assignednew

It seems to be working okay, i.e., one manages to load images w/o the OSM password being sent.

The problem I experienced w/ r9312 and the WMS from the #comment:description is in the context of parallel image loading:

  1. 3 WMS requests are fired and executed
  2. All 3 obtain HTTP 401
  3. The first one requests the saved credentials from the preferences (I entered+saved them while adding the WMS layer). It registers credentialsTried (in org/openstreetmap/josm/io/auth/DefaultAuthenticator.java:55, which is not host specific!), obtains the credentials from the preferences and loads the image
  4. The 2nd and 3rd request however reach credentialsTried already set from the first host. This causes 2 credential dialogs to be shown at org/openstreetmap/josm/io/auth/AbstractCredentialsAgent.java:46

So two credential dialogs are shown despite having the correct credentials set in the preferences.

To be done:

  • make org.openstreetmap.josm.io.auth.DefaultAuthenticator#credentialsTried host aware
  • somehow fix this parallel request issue
Last edited 6 years ago by simon04 (previous) (diff)

comment:4 Changed 6 years ago by simon04

Resolution: fixed
Status: newclosed

In 9396/josm:

fix #7122 - Improve HTTP authentication for parallel requests (TMS/WMS imagery)

comment:5 Changed 6 years ago by fsteggink

What a coincidence. Today an agreement was announced that the OSM community could use recent (2014) 50 cm photographs from the Netherlands to enhance OSM. It appears that WMS authentication will be used. Hopefully this fix will be sufficient. That would be nice :)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.