diff --git a/app/Providers/Socialite/OpenId.php b/app/Providers/Socialite/OpenId.php index dfceca75..299d0aa3 100644 --- a/app/Providers/Socialite/OpenId.php +++ b/app/Providers/Socialite/OpenId.php @@ -3,6 +3,7 @@ namespace App\Providers\Socialite; use GuzzleHttp\RequestOptions; +use Illuminate\Http\Request; use SocialiteProviders\Manager\OAuth2\AbstractProvider; use SocialiteProviders\Manager\OAuth2\User; @@ -15,6 +16,16 @@ class OpenId extends AbstractProvider */ protected $scopes = ['openid profile email']; + /** + * {@inheritdoc} + */ + public function __construct(Request $request, $clientId, $clientSecret, $redirectUrl, $guzzle = []) + { + parent::__construct($request, $clientId, $clientSecret, $redirectUrl, [ + 'proxy' => config('2fauth.config.outgoingProxy') + ]); + } + /** * {@inheritdoc} */