Skip to content

Commit

Permalink
Support HTTP Proxy in OIDC
Browse files Browse the repository at this point in the history
  • Loading branch information
rstefko committed Jul 20, 2024
1 parent a707ad3 commit d03a981
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/Providers/Socialite/OpenId.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

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

0 comments on commit d03a981

Please sign in to comment.