diff --git a/auth/callback_microsoft.php b/auth/callback_microsoft.php index ce8f349..673a757 100644 --- a/auth/callback_microsoft.php +++ b/auth/callback_microsoft.php @@ -59,7 +59,13 @@ if (!$stateUserId && (empty($receivedState) || empty($expectedState) || !hash_eq exit; } -// 3. Autorisatiecode controleren +// Afhandeling van beheerderstoestemming (Admin Consent) +if (!empty($_GET['admin_consent'])) { + header('Location: /integrations.php?success=' . urlencode('Beheerdersgoedkeuring voor uw organisatie is succesvol verleend! Klik nu op "Koppel Outlook" om uw agenda te synchroniseren.')); + exit; +} + +// 5. Autorisatiecode controleren $code = $_GET['code'] ?? ''; if (empty($code)) { header('Location: /integrations.php?error=' . urlencode('Geen autorisatiecode ontvangen van Microsoft.')); diff --git a/integrations.php b/integrations.php index 1d12d6e..551efb4 100644 --- a/integrations.php +++ b/integrations.php @@ -382,10 +382,27 @@ $redirectUri = rtrim(APP_URL, '/') . '/auth/callback_microsoft.php';

💡 Wat moet hier staan?

-

• Laat simpelweg common staan (werkt voor elk Microsoft account).

-

• Of vul organizations in voor elk zakelijk Microsoft 365 werkaccount.

-

• U hoeft alleen uw specifieke Tenant GUID in te vullen als uw Azure app is ingesteld op Single tenant (Alleen mijn eigen organisatie).

+

• Voor uw organisatie: vul uw domein in (bijv. planningsagenda.nl) of uw Tenant GUID.

+

• Voor multi-tenant apps: vul organizations of common in.

+ + +
+ +
+ Krijgt u "Beheerdersgoedkeuring vereist"? + In Azure staat de goedkeuring standaard op 'Niet verleend'. Open deze directe link als beheerder om het met 1 klik goed te keuren:
+ + Beheerdersgoedkeuring direct verlenen via Microsoft → + +
+
+