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/src/org/openstreetmap/josm/data/oauth/OAuthParameters.java
+++ b/src/org/openstreetmap/josm/data/oauth/OAuthParameters.java
@@ -137,6 +137,13 @@ public final class OAuthParameters {
                 clientId = "Hl5yIhFS-Egj6aY7A35ouLOuZl0EHjj8JJQQ46IO96E";
                 clientSecret = null;
                 break;
+            case "https://opengeofiction.net/api":
+            case "https://lugus.opengeofiction.net/api":
+                // clientId provided by wangi (Lee Kindness), OpenGeofiction administrator.
+                // lugus is the OpenGeofiction test server.
+                clientId = "dKB9Fb5H4MxrM3I23UFxNCh5VGiAEQ_20gC7WmXnaaY";
+                clientSecret = null;
+                break;
             default:
                 clientId = "";
                 clientSecret = null;
-- 
2.53.0

