AbstractFormLoginAuthenticator
extends AbstractGuardAuthenticator
in package
A base class to make form login authentication easier!
Tags
Table of Contents
- createAuthenticatedToken() : PostAuthenticationGuardToken
- Shortcut to create a PostAuthenticationGuardToken for you, if you don't really care about which authenticated token you're using.
- onAuthenticationFailure() : RedirectResponse
- Override to change what happens after a bad username/password is submitted.
- start() : RedirectResponse
- Override to control what happens when the user hits a secure page but isn't logged in yet.
- supportsRememberMe() : mixed
- getLoginUrl() : string
- Return the URL to the login page.
Methods
createAuthenticatedToken()
Shortcut to create a PostAuthenticationGuardToken for you, if you don't really care about which authenticated token you're using.
public
createAuthenticatedToken(UserInterface $user, string $providerKey) : PostAuthenticationGuardToken
Parameters
- $user : UserInterface
- $providerKey : string
Return values
PostAuthenticationGuardToken —onAuthenticationFailure()
Override to change what happens after a bad username/password is submitted.
public
onAuthenticationFailure(Request $request, AuthenticationException $exception) : RedirectResponse
Parameters
- $request : Request
- $exception : AuthenticationException
Return values
RedirectResponse —start()
Override to control what happens when the user hits a secure page but isn't logged in yet.
public
start(Request $request[, AuthenticationException $authException = null ]) : RedirectResponse
Parameters
- $request : Request
- $authException : AuthenticationException = null
Return values
RedirectResponse —supportsRememberMe()
public
supportsRememberMe() : mixed
Return values
mixed —getLoginUrl()
Return the URL to the login page.
protected
abstract getLoginUrl() : string