Changeset 18667 in josm for trunk


Ignore:
Timestamp:
2023-02-16T20:49:39+01:00 (14 months ago)
Author:
taylor.smock
Message:

see #22744, #20768: Don't remove OAuth 1 token when authenticating with OAuth 2

There is a button for users to remove either token if the user wants to do so.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/server/OAuthAuthenticationPreferencesPanel.java

    r18665 r18667  
    372372                        RemoteControl.stop();
    373373                    }
    374                     // Clean up old token/password
    375                     OAuthAccessTokenHolder.getInstance().setAccessToken(null);
    376374                    OAuthAccessTokenHolder.getInstance().setAccessToken(OsmApi.getOsmApi().getServerUrl(), token.orElse(null));
    377375                    OAuthAccessTokenHolder.getInstance().save(CredentialsManager.getInstance());
Note: See TracChangeset for help on using the changeset viewer.