<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/3827156?s=20&v=4" /><strong>mahmoudhanafy</strong> created an issue <a href="https://github.com/openstreetmap/openstreetmap-website/issues/6073">(openstreetmap/openstreetmap-website#6073)</a></div>
<p dir="auto">Hi Team,</p>
<p dir="auto">I'm trying to connect from JOSM to osm using OAuth2 but I see this the following in the logs:</p>
<pre class="notranslate"><code class="notranslate">2025-06-01 14:35:14.134 SEVERE: Authentication failed - <html>Authentication at the OSM server with the username 'my_user' failed.<br>Please check the username and the password in the JOSM preferences.</html>
2025-06-01 14:37:05.429 INFO: GET https://osm.test/.well-known/oauth-authorization-server -> HTTP/1.1 404 (464 ms; 4.86 kB)
2025-06-01 14:37:05.735 INFO: GET https://osm.test/.well-known/oauth-authorization-server -> HTTP/1.1 404 (148 ms; 4.86 kB)
2025-06-01 14:37:06.027 INFO: GET https://osm.test/.well-known/oauth-authorization-server -> HTTP/1.1 404 (149 ms; 4.86 kB)
</code></pre>
<p dir="auto">I'm pretty sure the username and password I'm using are correct (I use them to login on the website0. I was first using older version of the code and it was working fine with basic authentication.</p>
<p dir="auto">but after upgrading to the latest version of the code I got the following errors, and I can't authenticate with basic authentication or OAuth2</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/6073">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJLEQ52OUSLZS6LZ4D3BMBRNAVCNFSM6AAAAAB6LD4NPCVHI2DSMVQWIX3LMV43ASLTON2WKOZTGEYDOMRZG44DSOA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOSUBYJU76XYLYXERL3BMBRNA5CNFSM6AAAAAB6LD4NPCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLSNM2NI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/6073</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/6073",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/6073",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>