Ignore:
Timestamp:
2016-01-09T18:07:26+01:00 (8 years ago)
Author:
simon04
Message:

fix #7943 - Make OAuth work for non-standard OSM APIs

You will need to obtain an application via
http://<server>/user/<user>/oauth_clients/new, and set the OAuth
consumer key+secret in the advanced OAuth parameters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java

    r9352 r9355  
    479479
    480480        protected void alertLoginFailed(OsmLoginFailedException e) {
    481             String loginUrl = null;
    482             try {
    483                 loginUrl = authClient.buildOsmLoginUrl();
    484             } catch (OsmOAuthAuthorizationException e1) {
    485                 alertInvalidLoginUrl();
    486                 return;
    487             }
     481            final String loginUrl = getAdvancedPropertiesPanel().getAdvancedParameters().getOsmLoginUrl();
    488482            HelpAwareOptionPane.showOptionDialog(
    489483                    FullyAutomaticAuthorizationUI.this,
Note: See TracChangeset for help on using the changeset viewer.