abstract class AbstractFormLoginAuthenticator extends AbstractGuardAuthenticator
A base class to make form login authentication easier!
| GuardTokenInterface | createAuthenticatedToken(UserInterface $user, string $providerKey) Shortcut to create a PostAuthenticationGuardToken for you, if you don't really care about which authenticated token you're using. | from AbstractGuardAuthenticator |
| string | getLoginUrl() Return the URL to the login page. | |
| Response|null | onAuthenticationFailure(Request $request, AuthenticationException $exception) Override to change what happens after a bad username/password is submitted. | |
| bool | supportsRememberMe() Does this method support remember me cookies? | |
| Response | start(Request $request, AuthenticationException $authException = null) Override to control what happens when the user hits a secure page but isn't logged in yet. |
Shortcut to create a PostAuthenticationGuardToken for you, if you don't really care about which authenticated token you're using.
| UserInterface | $user | |
| string | $providerKey | The provider (i.e. firewall) key |
| GuardTokenInterface |
Return the URL to the login page.
| string |
Override to change what happens after a bad username/password is submitted.
| Request | $request | |
| AuthenticationException | $exception |
| Response|null |
Does this method support remember me cookies?
Remember me cookie will be set if all of the following are met: A) This method returns true B) The remember_me key under your firewall is configured C) The "remember me" functionality is activated. This is usually done by having a _remember_me checkbox in your form, but can be configured by the "always_remember_me" and "remember_me_parameter" parameters under the "remember_me" firewall key D) The onAuthenticationSuccess method returns a Response object
| bool |
Override to control what happens when the user hits a secure page but isn't logged in yet.
| Request | $request | The request that resulted in an AuthenticationException |
| AuthenticationException | $authException | The exception that started the authentication process |
| Response |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Guard/Authenticator/AbstractFormLoginAuthenticator.html