Josm fails to authenticate with OSM server

Hi folks,
No matter what I do, I can not authenticate my Josm with the OSM server.

When I switch the settings to Use Basic Authentication Json replies like this.

Authentication at the OSM server with the username 'DancingCycle' failed. Please check the username and the password in the JOSM preferences.

When I switch the settings to Use OAuth and hit the Authorize now (fully automatic) button and hit the Authorize now button using my credentials Json replies like this.

The automatic process for retrieving an OAuth Access Token from the OSM server failed.  Please try again or choose another kind of authorization process, i.e. semi-automatic or manual authorization.

This is the revision info I copied from Josm.

Revision:18646
Is-Local-Build:false
Build-Date:1970-01-02 07:01:53
Debian-Release:0.0.svn18646+dfsg-1
Build-Name:Debian

Any hints are well appreciated! Cheers!

Please update JOSM (currently 19230) since OSM recently switched to OAuth 2.0

5 Likes

If you are using Debian 12:

3 Likes

Authentication on the OSM server side changed quite some time ago. Basic Authentication and OAuth1 are no longer working which means you need to use OAuth2 and a recent JOSM version.

If using the Debian package, please use the version from the backports repository. Alternatively, you could try the packages provided by JOSM, see Download – JOSM

If you still face problems using OAuth2 with an up-to-date JOSM version, take a look at Help/Preferences/Connection – JOSM and feel free to ask further questions here.

3 Likes