Ticket #24889: 0001-Add-OpenGeofiction-OAuth-2-client-id.patch

File 0001-Add-OpenGeofiction-OAuth-2-client-id.patch, 1.7 KB (added by wangi@…, 22 hours ago)

patch to add OGF OAuth 2 client ID

  • src/org/openstreetmap/josm/data/oauth/OAuthParameters.java

    From e94be5e9695f43804c0b1c39909d928b415b21aa Mon Sep 17 00:00:00 2001
    From: Lee Kindness <wangi@opengeofiction.net>
    Date: Tue, 8 Sep 2026 21:49:40 +0100
    Subject: [PATCH] Add OpenGeofiction OAuth 2 client id
    
    OpenGeofiction (https://opengeofiction.net) runs the openstreetmap-website
    and CGImap stack for a fictional planet, with JOSM as one of its main
    editors. As for OpenHistoricalMap, a built-in client id lets 'Authorize
    now (Fully automatic)' work against its API; without it the button never
    enables for the host and users have to paste a server-minted token.
    
    lugus.opengeofiction.net is the project's test server, sharing the id.
    ---
     src/org/openstreetmap/josm/data/oauth/OAuthParameters.java | 7 +++++++
     1 file changed, 7 insertions(+)
    
    diff --git a/src/org/openstreetmap/josm/data/oauth/OAuthParameters.java b/src/org/openstreetmap/josm/data/oauth/OAuthParameters.java
    index c829efbcac..f6152f4bd5 100644
    a b public final class OAuthParameters {  
    137137                clientId = "Hl5yIhFS-Egj6aY7A35ouLOuZl0EHjj8JJQQ46IO96E";
    138138                clientSecret = null;
    139139                break;
     140            case "https://opengeofiction.net/api":
     141            case "https://lugus.opengeofiction.net/api":
     142                // clientId provided by wangi (Lee Kindness), OpenGeofiction administrator.
     143                // lugus is the OpenGeofiction test server.
     144                clientId = "dKB9Fb5H4MxrM3I23UFxNCh5VGiAEQ_20gC7WmXnaaY";
     145                clientSecret = null;
     146                break;
    140147            default:
    141148                clientId = "";
    142149                clientSecret = null;