Changeset 3188 in josm


Ignore:
Timestamp:
Apr 16, 2010 8:59:04 PM (3 years ago)
Author:
stoecker
Message:

close #4790 - OAuth uses HTTPS

File:
1 edited

Legend:

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

    r3095 r3188  
    2626import oauth.signpost.exception.OAuthException; 
    2727 
     28import org.openstreetmap.josm.Main; 
    2829import org.openstreetmap.josm.data.Version; 
    2930import org.openstreetmap.josm.data.oauth.OAuthParameters; 
     
    249250        try { 
    250251            URL autUrl = new URL(oauthProviderParameters.getAuthoriseUrl()); 
    251             // FIXME: as soon as the OSM website provides HTTPS protected access to the login 
    252             // page we can replace the protocol with https 
    253             // 
    254             URL url = new URL("http", autUrl.getHost(), autUrl.getPort(), "/login"); 
     252            URL url = new URL(Main.pref.get("oauth.protocol", "https"), autUrl.getHost(), autUrl.getPort(), "/login"); 
    255253            return url.toString(); 
    256254        } catch(MalformedURLException e) { 
Note: See TracChangeset for help on using the changeset viewer.