From 834320f679a83a05a5f10a07bf2cb9bd3ed90d3e Mon Sep 17 00:00:00 2001 From: Uladzimir Tsykun Date: Sun, 10 Sep 2023 18:37:34 +0200 Subject: [PATCH] Google openid login integration --- src/Integrations/Google/GoogleOAuth2Login.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Integrations/Google/GoogleOAuth2Login.php b/src/Integrations/Google/GoogleOAuth2Login.php index e6445b0f..0a2af930 100644 --- a/src/Integrations/Google/GoogleOAuth2Login.php +++ b/src/Integrations/Google/GoogleOAuth2Login.php @@ -4,12 +4,10 @@ namespace Packeton\Integrations\Google; -use Okvpn\Expression\TwigLanguage; use Packeton\Attribute\AsIntegration; use Packeton\Integrations\Base\BaseIntegrationTrait; use Packeton\Integrations\LoginInterface; use Packeton\Integrations\Model\OAuth2State; -use Psr\Log\LoggerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; @@ -31,11 +29,8 @@ public function __construct( protected HttpClientInterface $httpClient, protected RouterInterface $router, protected OAuth2State $state, - protected TwigLanguage $twigLanguage, - protected LoggerInterface $logger, ) { $this->name = $config['name']; - if (empty($this->config['default_roles'])) { $this->config['default_roles'] = ['ROLE_MAINTAINER', 'ROLE_SSO_GOOGLE']; }