Skip to content

Commit

Permalink
Merge pull request #367 from rstefko/master
Browse files Browse the repository at this point in the history
Support HTTP Proxy in OIDC
  • Loading branch information
Bubka authored Sep 4, 2024
2 parents 32ad237 + d03a981 commit 7c31985
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 7c31985

Please sign in to comment.