Ignore:
Timestamp:
2020-05-16T16:38:31+02:00 (4 years ago)
Author:
simon04
Message:

fix #18820, see #13872 - Make OAuth signing of all API requests configurable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r15969 r16422  
    3131import org.openstreetmap.josm.data.osm.OsmPrimitive;
    3232import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
     33import org.openstreetmap.josm.data.preferences.BooleanProperty;
    3334import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
    3435import org.openstreetmap.josm.gui.progress.ProgressMonitor;
     
    6970     */
    7071    public static final int MAX_DOWNLOAD_THREADS = 2;
     72
     73    /**
     74     * Defines whether all OSM API requests should be signed with an OAuth token (user-based bandwith limit instead of IP-based one)
     75     */
     76    public static final BooleanProperty USE_OAUTH_FOR_ALL_REQUESTS = new BooleanProperty("oauth.use-for-all-requests", true);
    7177
    7278    // The collection of instantiated OSM APIs
Note: See TracChangeset for help on using the changeset viewer.