]> BookStack Code Mirror - bookstack/commitdiff
Fixed 'interaction_required' response for azure 1889/head
authorch0wm3in <redacted>
Wed, 12 Feb 2020 14:03:55 +0000 (15:03 +0100)
committerGitHub <redacted>
Wed, 12 Feb 2020 14:03:55 +0000 (15:03 +0100)
Azure Conditional Access policy 2FA returns 'interaction_required' 400 response https://github.com/SocialiteProviders/Providers/issues/208

app/Auth/Access/SocialAuthService.php

index 16815a8e1b72d9f021e573975a473c94ab9d9f47..657aae3f327d530557b37c4ff2ce0f6f7126114a 100644 (file)
@@ -233,6 +233,9 @@ class SocialAuthService
         if ($driverName === 'google' && config('services.google.select_account')) {
             $driver->with(['prompt' => 'select_account']);
         }
         if ($driverName === 'google' && config('services.google.select_account')) {
             $driver->with(['prompt' => 'select_account']);
         }
+        if ($driverName === 'azure') {
+            $driver->with(['resource' => 'https://graph.windows.net']);
+        }
 
         return $driver;
     }
 
         return $driver;
     }