﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
23988	Enable Authorize now (Fully automatic)  button for OpenHistoricalMap endpoints	Rub21	team	"Hey JOSM team,

There are some issues with logging into OpenHistoricalMap in JOSM. Currently, JOSM is hardcoded for https://www.openhistoricalmap.org/api, but some users have been trying to use the alternative API endpoint, https://api.openhistoricalmap.org/api.  but it did not work, Is there a possibility to add this alternative API endpoint as well? ir order to activate the ""Authorize now (Fully automatic)"" button for login.

issue reported: https://github.com/OpenHistoricalMap/issues/issues/901

I’ve been testing this  the following peace of code on my local setup JOSM and works well for both https://www.openhistoricalmap.org/api and https://api.openhistoricalmap.org/api at this line: 

https://github.com/JOSM/josm/blob/master/src/org/openstreetmap/josm/data/oauth/OAuthParameters.java#L134

{{{

            case ""https://www.openhistoricalmap.org/api"":
            case ""https://api.openhistoricalmap.org/api"":
                // clientId provided by 1ec5 (Minh Nguyễn)
                clientId = ""Hl5yIhFS-Egj6aY7A35ouLOuZl0EHjj8JJQQ46IO96E"";
                clientSecret = null;
                break;
}}}

could be possible to add the line `case ""https://api.openhistoricalmap.org/api"":`?"	enhancement	closed	normal	24.10	Core		fixed		1ec5
