From c571967701a6a58d2d6763ac9d90012133c512dd Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 4 Mar 2026 10:06:02 +0100 Subject: [PATCH] feat: display redirect URI for Google SSO in user interface --- backend/templates/school_ict.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/templates/school_ict.html b/backend/templates/school_ict.html index f0ee42d..bb3e5a8 100644 --- a/backend/templates/school_ict.html +++ b/backend/templates/school_ict.html @@ -409,6 +409,10 @@ document.addEventListener('DOMContentLoaded', async () => { document.getElementById('btnConfirmUser') && bind('btnConfirmUser', 'click', addUser); document.getElementById('auditCategory') && bind('auditCategory', 'change', loadAuditLog); document.getElementById('auditSearch') && bind('auditSearch', 'input', loadAuditLog); + // Redirect URI is altijd bekend — vul meteen in zodat het niet "Laden..." blijft + const redirectEl = document.getElementById('redirectUriDisplay'); + if (redirectEl) redirectEl.textContent = window.location.origin + '/auth/google/callback'; + const me = await fetch('/api/me').then(r => r.json()); mySchoolId = me.user?.school_id; document.getElementById('schoolName').textContent = me.user?.school_name || ''; @@ -672,10 +676,6 @@ async function loadSsoStatus() { const statusEl = document.getElementById('ssoStatus'); if (!statusEl || !school) return; - // Toon de redirect URI in de instructies - const redirectEl = document.getElementById('redirectUriDisplay'); - if (redirectEl) redirectEl.textContent = window.location.origin + '/auth/google/callback'; - if (school.google_sso_configured) { statusEl.innerHTML = `