InteractiveAuthenticatorInterface.php 891 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Security\Http\Authenticator;
  11. /**
  12. * This is an extension of the authenticator interface that must
  13. * be used by interactive authenticators.
  14. *
  15. * Interactive login requires explicit user action (e.g. a login
  16. * form or HTTP basic authentication). Implementing this interface
  17. * will dispatcher the InteractiveLoginEvent upon successful login.
  18. *
  19. * @author Wouter de Jong <wouter@wouterj.nl>
  20. */
  21. interface InteractiveAuthenticatorInterface extends AuthenticatorInterface
  22. {
  23. /**
  24. * Should return true to make this authenticator perform
  25. * an interactive login.
  26. */
  27. public function isInteractive(): bool;
  28. }