vendor/bigidea/identity-bundle/Controller/TeamMateAuthenticationController.php line 18

Open in your IDE?
  1. <?php
  2. namespace BigIdea\IdentityBundle\Controller;
  3. use Drenso\OidcBundle\OidcClientInterface;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\RedirectResponse;
  6. use Symfony\Component\HttpFoundation\Response;
  7. use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
  8. class TeamMateAuthenticationController extends AbstractController
  9. {
  10.     public function ssoEntrypoint(OidcClientInterface $oidcClient): RedirectResponse
  11.     {
  12.         return $oidcClient->generateAuthorizationRedirect(scopes: ['openid''profile''email']);
  13.     }
  14.     public function formLogin(AuthenticationUtils $authenticationUtils): Response
  15.     {
  16.         return $this->render('@Identity/Authentication/login.html.twig', [
  17.             'last_username' => $authenticationUtils->getLastUsername(),
  18.             'error' => $authenticationUtils->getLastAuthenticationError(),
  19.         ]);
  20.     }
  21. }