Changeset 3188 in josm for trunk/src/org
- Timestamp:
- 2010-04-16T20:59:04+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java
r3095 r3188 26 26 import oauth.signpost.exception.OAuthException; 27 27 28 import org.openstreetmap.josm.Main; 28 29 import org.openstreetmap.josm.data.Version; 29 30 import org.openstreetmap.josm.data.oauth.OAuthParameters; … … 249 250 try { 250 251 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"); 255 253 return url.toString(); 256 254 } catch(MalformedURLException e) {
Note:
See TracChangeset
for help on using the changeset viewer.