From c1fe81466f85a5f12fa5099807655814971322f5 Mon Sep 17 00:00:00 2001 From: ch0wm3in <32718507+ch0wm3in@users.noreply.github.com> Date: Wed, 12 Feb 2020 15:03:55 +0100 Subject: [PATCH] Fixed 'interaction_required' response for azure Azure Conditional Access policy 2FA returns 'interaction_required' 400 response https://github.com/SocialiteProviders/Providers/issues/208 --- app/Auth/Access/SocialAuthService.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Auth/Access/SocialAuthService.php b/app/Auth/Access/SocialAuthService.php index 16815a8e1..657aae3f3 100644 --- a/app/Auth/Access/SocialAuthService.php +++ b/app/Auth/Access/SocialAuthService.php @@ -233,6 +233,9 @@ class SocialAuthService 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; }