﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
22380	Unable to renew OAuth token using semi-automatic method	info@…	team	"I use a third party (GitHub) to log into openstreetmap.org. This is supported in JOSM using the semi-automatic authentication method. If for some reason your token has become invalid however, this method is not available anymore. This effectively makes it impossible to authenticate JOSM again, unless you manually edit the configuration file.

==== What steps will reproduce the problem?
Precondition:
* JOSM is authenticated with openstreetmap.org
* the account in use uses a third party to log into openstreetmap.org, i.e. does not use a password for authentication

1. Go to https://www.openstreetmap.org, log in and go to your account settings
2. Under OAuth 1 settings revoke the token for JOSM
3. When launching JOSM, you get a popup titled 'Authentication failed', mentioning 'Please launch the preferences dialog and retrieve another OAuth token.'
4. Open the preferences dialog and switch to the 'OSM Server' tab.
5. Select 'New Access Token'
6. Only the option to log in with a user name and password is shown. It is not possible to log in using the semi-automatic method

==== What is the expected result?
One of the following
* I can create a new access token using the semi-automatic method
* I can clear my current access token and start over

==== What happens instead?
* I am only presented with the fully automatic method, which does not work for me

==== Please provide any additional information below. Attach a screenshot if possible.

Workaround:

* open ~/.config/JOSM/preferences.xml in an editor
* remove the tags with key 'oauth.access-token.key' and 'oauth.access-token.secret'
* restart JOSM
* Open the preferences dialog and switch to the 'OSM Server' tab.
* Click on 'New Access Token'
* You now have a button labeled 'Authorize now (Semi-automatic)' which lets you log in with a third party.

{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2022-08-29 16:59:00 +0200 (Mon, 29 Aug 2022)
Revision:18543
Build-Date:2022-08-30 01:30:57
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18543 en) Linux Ubuntu 22.04.1 LTS
Memory Usage: 428 MB / 3926 MB (175 MB allocated, but free)
Java version: 17.0.4+8-Ubuntu-122.04, Private Build, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1920×1200 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1200
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_US.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: KDE
Java ATK Wrapper package: libatk-wrapper-java:all-0.38.0-5build1
libcommons-compress-java: libcommons-compress-java:all-1.21-1
libcommons-logging-java: libcommons-logging-java:all-1.2-2
fonts-noto: fonts-noto:all-20201225-1build1

Plugins:
+ jaxb (35952)
+ jogl (1.2.3)
+ kendzi3d (1.0.205)
+ kendzi3d-resources (0.0.2)
+ log4j (36007)
}}}
"	defect	new	normal		Core			template_report	
