Ignore:
Timestamp:
2011-12-21T23:12:59+01:00 (13 years ago)
Author:
stoecker
Message:

see #7086 - fix passing auth information to wrong server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java

    r4253 r4690  
    4242import org.openstreetmap.josm.gui.widgets.SelectAllOnFocusGainedDecorator;
    4343import org.openstreetmap.josm.gui.widgets.VerticallyScrollablePanel;
     44import org.openstreetmap.josm.io.OsmApi;
    4445import org.openstreetmap.josm.io.OsmTransferException;
    4546import org.openstreetmap.josm.io.auth.CredentialsAgent;
     
    184185        CredentialsAgent cm = CredentialsManager.getInstance();
    185186        try {
    186             PasswordAuthentication pa = cm.lookup(RequestorType.SERVER);
     187            PasswordAuthentication pa = cm.lookup(RequestorType.SERVER, OsmApi.getOsmApi().getHost());
    187188            if (pa == null) {
    188189                tfUserName.setText("");
Note: See TracChangeset for help on using the changeset viewer.