Ticket #4790: use-https-login.patch

File use-https-login.patch, 997 bytes (added by avarab@…, 16 years ago)

Implement a TODO in the source and use HTTPS login instead of HTTP

  • src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java

     
    248248    public String buildOsmLoginUrl() throws OsmOAuthAuthorizationException{
    249249        try {
    250250            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");
     251            URL url = new URL("https", autUrl.getHost(), autUrl.getPort(), "/login");
    255252            return url.toString();
    256253        } catch(MalformedURLException e) {
    257254            throw new OsmOAuthAuthorizationException(e);