Changes between Initial Version and Version 1 of Ticket #23804, comment 9
- Timestamp:
- 2024-07-15T18:00:08+02:00 (13 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23804, comment 9
initial v1 1 1 Replying to [comment:8 taylor.smock]: 2 > Important bits from the preferences.xml file ''with the sensitive information removed'' (actual token -> `<token>`): 3 > {{{ 4 > <tag key='oauth.access-token.object.OAuth20.api.openstreetmap.org' value='{"access_token":"<token>","token_type":"bearer","created_at":1721024598,"scope":""}'/> 5 > <tag key='oauth.access-token.parameters.OAuth20.https://api.openstreetmap.org/api' value='{"client_id":"edPII614Lm0_0zEpc_QzEltA9BUll93-Y-ugRQUoHMI","redirect_uri":"http://127.0.0.1:8111/oauth_authorization","api_url":"https://api.openstreetmap.org/api","authorize_url":"https://www.openstreetmap.org/oauth2/authorize","token_url":"https://www.openstreetmap.org/oauth2/token"}'/> 6 > }}} 7 > 8 > It looks like there is some sensitive data in the preferences.xml (in those two entries). I have deleted the preferences.xml attachment. It would have allowed other people to impersonate you on the OSM server. 9 > 2 > (...) 10 3 > The file was up for ~6 minutes; you may or may not be OK. I would still recommend resetting your OAuth 2 token. 11 4 > Steps to do so: 12 5 > 1. Go to https://www.openstreetmap.org/oauth2/applications 13 6 > 2. `Delete` the JOSM application from this list; this will ensure that a ''new token'' is created the next time you try to authenticate with JOSM. 14 > 7 I replaced passwd and ligin with "was_there" to indicate they wasn't empty strings. Thank you. 8 I can't force JOSM to authenticate, so on page you mentioned JOSM is missing and that's my issue. 15 9 > On to the actual problem: 16 10 > It looks like the OAuth scopes are wrong; the preferences should look more like … … 21 15 > Note that the scope should have `read_gpx write_gpx read_prefs write_prefs write_api write_notes`; these can be trimmed down a bit (for example, JOSM core doesn't need `write_gpx` but the `DirectUpload` plugin does). 22 16 23 I replaced passwd and ligin with "was_there" to indicate they wasn't empty strings. Thank you. 24 I can't force JOSM to authenticate, so on page you mentioned JOSM is missing and that's my issue. Token reset done. Do you think modification of this 2 lines should help? 17 Token reset done. Do you think modification of this 2 lines should help?