From 38d994f312809750cb2f233658a9ec0e39d015e3 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 7 Sep 2026 00:08:07 +0000 Subject: [PATCH] Admin UI: rename Realms to Domains, list allowed origins per domain --- frontend/auth/admin/AdminApp.vue | 8 +++---- frontend/src/admin/AdminDialogs.vue | 18 +++++++-------- frontend/src/admin/AdminOverview.vue | 33 ++++++++++++++++++---------- 3 files changed, 34 insertions(+), 25 deletions(-) diff --git a/frontend/auth/admin/AdminApp.vue b/frontend/auth/admin/AdminApp.vue index fad002f..c979a0f 100644 --- a/frontend/auth/admin/AdminApp.vue +++ b/frontend/auth/admin/AdminApp.vue @@ -508,10 +508,10 @@ function openRealm(realm) { function deleteRealm(realm) { openDialog('confirm', { - message: `Delete realm "${realm.rp_id}"? This is refused while any passkeys remain registered for it.`, + message: `Delete domain "${realm.rp_id}"? This is refused while any passkeys remain registered for it.`, action: async () => { await apiJson(`/auth/api/admin/realms/${realm.rp_id}`, { method: 'DELETE' }) - authStore.showMessage(`Realm "${realm.rp_id}" deleted.`, 'success', 2500) + authStore.showMessage(`Domain "${realm.rp_id}" deleted.`, 'success', 2500) await loadRealms() } }) @@ -958,7 +958,7 @@ async function submitDialog() { : apiJson(`/auth/api/admin/realms/${rp_id}`, { method: 'PATCH', body: { rp_name, auth_host, origins, related_origins } }) req .then(() => { - authStore.showMessage(`Realm "${rp_id}" ${d.isNew ? 'created' : 'updated'}.`, 'success', 2500) + authStore.showMessage(`Domain "${rp_id}" ${d.isNew ? 'created' : 'updated'}.`, 'success', 2500) loadRealms() // Reload settings to reflect rp_name changes authStore.loadSettings(true).then(() => { @@ -966,7 +966,7 @@ async function submitDialog() { }) }) .catch(e => { - authStore.showMessage(e.message || 'Failed to save realm', 'error') + authStore.showMessage(e.message || 'Failed to save domain', 'error') }) return // Don't call closeDialog() again } else if (t === 'confirm') { diff --git a/frontend/src/admin/AdminDialogs.vue b/frontend/src/admin/AdminDialogs.vue index 281672a..6504262 100644 --- a/frontend/src/admin/AdminDialogs.vue +++ b/frontend/src/admin/AdminDialogs.vue @@ -216,7 +216,7 @@ function validateAuthHost() { - +