Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | protected function getStartResponse( |
||
17 | string $providerName, |
||
18 | ClientRegistry $clientRegistry, |
||
19 | AuthenticationConfigHelper $authenticationConfigHelper, |
||
20 | ): Response { |
||
21 | if (!$authenticationConfigHelper->isOAuth2ProviderEnabled($providerName)) { |
||
22 | throw $this->createAccessDeniedException(); |
||
23 | } |
||
24 | |||
25 | return $clientRegistry->getClient($providerName)->redirect([], []); |
||
26 | } |
||
28 |