#7943 closed defect (fixed)
Default OAuth settings not in line with used API server
Reported by: | Don-vip | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 16.02 |
Component: | Core | Version: | |
Keywords: | OAuth | Cc: |
Description
I switched to master dev OSM API server (http://api06.dev.openstreetmap.org) to fix #7938 and it took me a moment to understand why I wasn't able to create a changeset.
After setting up the API server, I created a new OAuth token with the wizard, but did not see that the default advanced params are always set to:
Request Token URL: http://www.openstreetmap.org/oauth/request_token Access Token URL: http://www.openstreetmap.org/oauth/access_token Authorize URL: http://www.openstreetmap.org/oauth/authorize
Two things to fix:
- When a complete custom API server is set, the defaults settings should not be used and the user forced to enter the OAuth URLs
- When a known dev OSM API is used (i.e. ending by dev.openstreetmap.org), the default settings should be set to
Request Token URL: http://<name>.dev.openstreetmap.org/oauth/request_token Access Token URL: http://<name>.dev.openstreetmap.org/oauth/access_token Authorize URL: http://<name>.dev.openstreetmap.org/oauth/authorize
Attachments (0)
Change History (9)
comment:1 by , 12 years ago
follow-up: 5 comment:2 by , 12 years ago
I am still unable to access dev API server with JOSM and OAuth but I don't understand if I'm doing something wrong or what. Has someone else ever tried ?
The only thing I am able to do is getting a weird NPE when switching back to standard API server and validating the preferences dialog:
Build-Date: 2012-08-09 21:45:10 Revision: 5411 Is-Local-Build: true Identification: JOSM/1.5 (5411 SVN en) Memory Usage: 156 MB / 1816 MB (55 MB allocated, but free) Java version: 1.7.0_05, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Operating system: Windows 7 java.lang.NullPointerException at org.openstreetmap.josm.data.Preferences$AbstractSetting.toString(Preferences.java:125) at java.text.MessageFormat.subformat(Unknown Source) at java.text.MessageFormat.format(Unknown Source) at java.text.Format.format(Unknown Source) at java.text.MessageFormat.format(Unknown Source) at org.openstreetmap.josm.tools.I18n.tr(I18n.java:151) at org.openstreetmap.josm.gui.io.UploadDialog.preferenceChanged(UploadDialog.java:505) at org.openstreetmap.josm.data.Preferences.firePreferenceChanged(Preferences.java:237) at org.openstreetmap.josm.data.Preferences.put(Preferences.java:488) at org.openstreetmap.josm.gui.preferences.server.OsmApiUrlInputPanel.saveToPreferences(OsmApiUrlInputPanel.java:141) at org.openstreetmap.josm.gui.preferences.ServerAccessPreference.ok(ServerAccessPreference.java:133) at org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane$3.run(PreferenceTabbedPane.java:254) at org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane.savePreferences(PreferenceTabbedPane.java:303) at org.openstreetmap.josm.gui.preferences.PreferenceDialog$OKAction.actionPerformed(PreferenceDialog.java:159)
follow-up: 6 comment:5 by , 12 years ago
Replying to Don-vip:
I am still unable to access dev API server with JOSM and OAuth but I don't understand if I'm doing something wrong or what. Has someone else ever tried ?
No progress on this, even after the update. Could it be a problem on OSM side ?
comment:6 by , 10 years ago
Replying to Don-vip:
Replying to Don-vip:
I am still unable to access dev API server with JOSM and OAuth but I don't understand if I'm doing something wrong or what. Has someone else ever tried ?
No progress on this, even after the update. Could it be a problem on OSM side ?
I cannot even create a oauth token (using JOSM's gui) for my user account on http://master.apis.dev.openstreetmap.org/user/malenki/
comment:7 by , 8 years ago
Milestone: | → 16.02 |
---|
In 5411/josm: