feat: ondersteuning voor admin_consent parameter in OAuth callback
This commit is contained in:
@@ -59,7 +59,13 @@ if (!$stateUserId && (empty($receivedState) || empty($expectedState) || !hash_eq
|
|||||||
exit;
|
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'] ?? '';
|
$code = $_GET['code'] ?? '';
|
||||||
if (empty($code)) {
|
if (empty($code)) {
|
||||||
header('Location: /integrations.php?error=' . urlencode('Geen autorisatiecode ontvangen van Microsoft.'));
|
header('Location: /integrations.php?error=' . urlencode('Geen autorisatiecode ontvangen van Microsoft.'));
|
||||||
|
|||||||
Reference in New Issue
Block a user