Changeset 12928 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2017-10-06T15:17:51+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmConnection.java
r12869 r12928 114 114 protected void addOAuthAuthorizationHeader(HttpClient connection) throws OsmTransferException { 115 115 if (oauthParameters == null) { 116 oauthParameters = OAuthParameters.createFrom Preferences(Main.pref);116 oauthParameters = OAuthParameters.createFromApiUrl(OsmApi.getOsmApi().getServerUrl()); 117 117 } 118 118 OAuthConsumer consumer = oauthParameters.buildConsumer(); … … 146 146 fetcher.obtainAccessToken(apiUrl); 147 147 OAuthAccessTokenHolder.getInstance().setSaveToPreferences(true); 148 OAuthAccessTokenHolder.getInstance().save( Main.pref,CredentialsManager.getInstance());148 OAuthAccessTokenHolder.getInstance().save(CredentialsManager.getInstance()); 149 149 } catch (MalformedURLException | InterruptedException | InvocationTargetException e) { 150 150 throw new MissingOAuthAccessTokenException(e);
Note:
See TracChangeset
for help on using the changeset viewer.