AbstractLoginFormAuthenticator
abstractclass AbstractLoginFormAuthenticator extendsAbstractAuthenticator implementsAuthenticationEntryPointInterface,InteractiveAuthenticatorInterface
A base class to make form login authentication easier!
Methods
Shortcut to create a PostAuthenticationToken for you, if you don't really care about which authenticated token you're using.
Return the URL to the login page.
Override to change the request conditions that have to be matched in order to handle the login form submit.
Override to change what happens after a bad username/password is submitted.
Override to control what happens when the user hits a secure page but isn't logged in yet.
Should return true to make this authenticator perform an interactive login.
Details
TokenInterface
createToken(Passport$passport,string$firewallName)
Shortcut to create a PostAuthenticationToken for you, if you don't really care about which authenticated token you're using.
bool|null
supports(Request$request)
Override to change the request conditions that have to be matched in order to handle the login form submit.
This default implementation handles all POST requests to the login path (see getLoginUrl()).
Response|null
onAuthenticationFailure(Request$request,AuthenticationException$exception)
Override to change what happens after a bad username/password is submitted.