Ignore:
Timestamp:
2024-02-21T22:06:26+01:00 (15 months ago)
Author:
taylor.smock
Message:

See #22810: OSM OAuth 1.0a/Basic auth deprecation and removal

Location:
applications/editors/josm/plugins/sds
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified applications/editors/josm/plugins/sds/build.xml

    r36051 r36211  
    55    <property name="commit.message" value=""/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="18650"/>
     7    <property name="plugin.main.version" value="18991"/>
    88
    99    <property name="plugin.author" value="Frederik Ramm"/>
  • TabularUnified applications/editors/josm/plugins/sds/src/org/openstreetmap/hot/sds/SdsCredentialAgent.java

    r36051 r36211  
    1313
    1414import org.openstreetmap.josm.data.oauth.IOAuthToken;
    15 import org.openstreetmap.josm.data.oauth.OAuthToken;
    1615import org.openstreetmap.josm.gui.io.CredentialDialog;
    1716import org.openstreetmap.josm.gui.widgets.HtmlPanel;
     
    8382    }
    8483
    85     /**
    86      * Lookup the current OAuth Access Token to access the OSM server. Replies null, if no
    87      * Access Token is currently managed by this CredentialManager.
    88      *
    89      * @return the current OAuth Access Token to access the OSM server.
    90      */
    91     @Override
    92     public OAuthToken lookupOAuthAccessToken() {
    93         String accessTokenKey = Config.getPref().get("oauth.access-token.key", null);
    94         String accessTokenSecret = Config.getPref().get("oauth.access-token.secret", null);
    95         if (accessTokenKey == null && accessTokenSecret == null)
    96             return null;
    97         return new OAuthToken(accessTokenKey, accessTokenSecret);
    98     }
    99 
    10084    @Override
    10185    public IOAuthToken lookupOAuthAccessToken(String host) {
     
    125109    public String getSaveUsernameAndPasswordCheckboxText() {
    126110        return tr("Save user and password (unencrypted)");
    127     }
    128 
    129     @Override
    130     public void storeOAuthAccessToken(OAuthToken accessToken) {
    131         // no-op
    132111    }
    133112
Note: See TracChangeset for help on using the changeset viewer.