Merge pull request #367 from rstefko/master

Support HTTP Proxy in OIDC
This commit is contained in:
Bubka 2024-09-04 09:28:54 +02:00 committed by GitHub
commit 7c3198523c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}
*/