Changeset 9301 in josm for trunk/src


Ignore:
Timestamp:
2016-01-04T14:41:37+01:00 (4 years ago)
Author:
simon04
Message:

OAuth: logout via HTTPS, no need to follow logout redirect

File:
1 edited

Legend:

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

    r9232 r9301  
    273273        try {
    274274            URL autUrl = new URL(oauthProviderParameters.getAuthoriseUrl());
    275             URL url = new URL("http", autUrl.getHost(), autUrl.getPort(), "/logout");
     275            URL url = new URL(Main.pref.get("oauth.protocol", "https"), autUrl.getHost(), autUrl.getPort(), "/logout");
    276276            return url.toString();
    277277        } catch (MalformedURLException e) {
     
    383383            URL url = new URL(buildOsmLogoutUrl());
    384384            synchronized (this) {
    385                 connection = HttpClient.create(url).connect();
     385                connection = HttpClient.create(url).setMaxRedirects(-1).connect();
    386386            }
    387387        } catch (IOException e) {
Note: See TracChangeset for help on using the changeset viewer.