fix(microsoft): resolve AADSTS50194 by enforcing tenant-specific endpoint planningsagenda.nl instead of common for single-tenant app
This commit is contained in:
@@ -77,7 +77,7 @@ $appConfig = microsoft_get_app_config();
|
||||
|
||||
$clientId = $appConfig['client_id'];
|
||||
$clientSecret = $appConfig['client_secret'];
|
||||
$tenantId = $appConfig['tenant_id'];
|
||||
$tenantId = (!empty($appConfig['tenant_id']) && $appConfig['tenant_id'] !== 'common') ? $appConfig['tenant_id'] : 'planningsagenda.nl';
|
||||
|
||||
if (empty($clientId) || empty($clientSecret)) {
|
||||
header('Location: /profile.php?error=' . urlencode('Microsoft 365 configuratie (Client ID of Secret) ontbreekt in Fociz. Neem contact op met de beheerder.'));
|
||||
|
||||
Reference in New Issue
Block a user