feat: display redirect URI for Google SSO in user interface
All checks were successful
Build & Push / Build & Push image (push) Successful in 41s
All checks were successful
Build & Push / Build & Push image (push) Successful in 41s
This commit is contained in:
@@ -409,6 +409,10 @@ document.addEventListener('DOMContentLoaded', async () => {
|
|||||||
document.getElementById('btnConfirmUser') && bind('btnConfirmUser', 'click', addUser);
|
document.getElementById('btnConfirmUser') && bind('btnConfirmUser', 'click', addUser);
|
||||||
document.getElementById('auditCategory') && bind('auditCategory', 'change', loadAuditLog);
|
document.getElementById('auditCategory') && bind('auditCategory', 'change', loadAuditLog);
|
||||||
document.getElementById('auditSearch') && bind('auditSearch', 'input', 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());
|
const me = await fetch('/api/me').then(r => r.json());
|
||||||
mySchoolId = me.user?.school_id;
|
mySchoolId = me.user?.school_id;
|
||||||
document.getElementById('schoolName').textContent = me.user?.school_name || '';
|
document.getElementById('schoolName').textContent = me.user?.school_name || '';
|
||||||
@@ -672,10 +676,6 @@ async function loadSsoStatus() {
|
|||||||
const statusEl = document.getElementById('ssoStatus');
|
const statusEl = document.getElementById('ssoStatus');
|
||||||
if (!statusEl || !school) return;
|
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) {
|
if (school.google_sso_configured) {
|
||||||
statusEl.innerHTML = `
|
statusEl.innerHTML = `
|
||||||
<div style="display:inline-flex;align-items:center;gap:.5rem;
|
<div style="display:inline-flex;align-items:center;gap:.5rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user