From ba1b8b74b7dba9667c533a9608ae8802b05534b5 Mon Sep 17 00:00:00 2001 From: John Coffey Date: Tue, 22 Sep 2026 18:13:04 -0700 Subject: [PATCH] Use the server's renamed registry capability and web interface client MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit inbuxa-server renames the identifiers that carried the upstream name (its SPEC.md ยง2.4): upstream's JMAP capability for the registry (x:) objects is urn:inbuxa:jmap:registry, beside the fork's own urn:inbuxa:jmap, and the web interface it serves signs in as inbuxa-webui. There are no aliases, so this lands with the server change and deploys with it. --- src/lib/oauthClientId.test.ts | 6 +++--- src/lib/oauthClientId.ts | 4 ++-- src/services/jmap/client.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/oauthClientId.test.ts b/src/lib/oauthClientId.test.ts index 84651d4..1c237a7 100644 --- a/src/lib/oauthClientId.test.ts +++ b/src/lib/oauthClientId.test.ts @@ -36,17 +36,17 @@ describe('getOAuthClientId', () => { it('falls back to the built-in default when the placeholder is empty', async () => { const getOAuthClientId = await loadWithMeta(''); - expect(getOAuthClientId()).toBe('stalwart-webui'); + expect(getOAuthClientId()).toBe('inbuxa-webui'); }); it('falls back to the built-in default when the placeholder is only whitespace', async () => { const getOAuthClientId = await loadWithMeta(''); - expect(getOAuthClientId()).toBe('stalwart-webui'); + expect(getOAuthClientId()).toBe('inbuxa-webui'); }); it('falls back to the built-in default when the placeholder is absent', async () => { const getOAuthClientId = await loadWithMeta(''); - expect(getOAuthClientId()).toBe('stalwart-webui'); + expect(getOAuthClientId()).toBe('inbuxa-webui'); }); it('is inbuxa-admin when hosted apart from the server', async () => { diff --git a/src/lib/oauthClientId.ts b/src/lib/oauthClientId.ts index e58c83a..5006b03 100644 --- a/src/lib/oauthClientId.ts +++ b/src/lib/oauthClientId.ts @@ -9,10 +9,10 @@ // INBUXA requires OAuth clients to be registered, and registers these two on // every start (inbuxa-server contract C-6). Served by the server itself, this -// is the web interface at /admin, registered as `stalwart-webui`. Hosted +// is the web interface at /admin, registered as `inbuxa-webui`. Hosted // anywhere else, with the server's address in , it // is INBUXA Admin, registered as `inbuxa-admin` from INBUXA_ADMIN_URL. -const SERVED_BY_SERVER_CLIENT_ID = 'stalwart-webui'; +const SERVED_BY_SERVER_CLIENT_ID = 'inbuxa-webui'; const HOSTED_ELSEWHERE_CLIENT_ID = 'inbuxa-admin'; let cached: string | undefined; diff --git a/src/services/jmap/client.ts b/src/services/jmap/client.ts index 42dba6d..1a5fd12 100644 --- a/src/services/jmap/client.ts +++ b/src/services/jmap/client.ts @@ -15,7 +15,7 @@ import type { Schema } from '@/types/schema'; const JMAP_USING = [ 'urn:ietf:params:jmap:core', - 'urn:stalwart:jmap', + 'urn:inbuxa:jmap:registry', 'urn:ietf:params:jmap:blob', 'urn:ietf:params:jmap:mail', 'urn:ietf:params:jmap:calendars', -- 2.54.0