Guard\Authenticator\AbstractFormLoginAuthenticator (Component\Security)
Symfony\Component\Security\Guard\Authenticator\AbstractFormLoginAuthenticator
abstract class AbstractFormLoginAuthenticator extends AbstractGuardAuthenticator
A base class to make form login authentication easier!
Methods
PostAuthenticationGuardToken | 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 |
RedirectResponse | onAuthenticationFailure(Request $request, AuthenticationException $exception) Override to change what happens after a bad username/password is submitted. | |
RedirectResponse | onAuthenticationSuccess(Request $request, TokenInterface $token, string $providerKey) Override to change what happens after successful authentication. | |
bool | supportsRememberMe() Does this method support remember me cookies? | |
RedirectResponse | start(Request $request, AuthenticationException $authException = null) Override to control what happens when the user hits a secure page but isn't logged in yet. |
Details
public PostAuthenticationGuardToken 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.
public RedirectResponse onAuthenticationFailure(Request $request, AuthenticationException $exception)
Override to change what happens after a bad username/password is submitted.
public RedirectResponse onAuthenticationSuccess(Request $request, TokenInterface $token, string $providerKey)
Override to change what happens after successful authentication.
public bool supportsRememberMe()
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 rememberme key under your firewall is configured C) The "remember me" functionality is activated. This is usually done by having a _rememberme checkbox in your form, but can be configured by the "alwaysrememberme" and "remembermeparameter" parameters under the "remember_me" firewall key
public RedirectResponse start(Request $request, AuthenticationException $authException = null)
Override to control what happens when the user hits a secure page but isn't logged in yet.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Security/Guard/Authenticator/AbstractFormLoginAuthenticator.html