abstractclass AbstractLoginFormAuthenticator extendsAbstractAuthenticator implementsAuthenticationEntryPointInterface,InteractiveAuthenticatorInterface

A base class to make form login authentication easier!

Methods

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.

string
getLoginUrl(Request$request)

Return the URL to the login page.

bool|null
supports(Request$request)

Override to change the request conditions that have to be matched in order to handle the login form submit.

Response|null
onAuthenticationFailure(Request$request,AuthenticationException$exception)

Override to change what happens after a bad username/password is submitted.

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.

bool
isInteractive()

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.

Parameters

Passport $passport
string $firewallName

Return Value

TokenInterface

abstractprotectedstring getLoginUrl(Request$request)

Return the URL to the login page.

Parameters

Request $request

Return Value

string

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()).

Parameters

Request $request

Return Value

bool|null

Response|null onAuthenticationFailure(Request$request,AuthenticationException$exception)

Override to change what happens after a bad username/password is submitted.

Parameters

Request $request
AuthenticationException $exception

Return Value

Response|null

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.

Parameters

Request $request
AuthenticationException $authException

Return Value

Response

bool isInteractive()

Should return true to make this authenticator perform an interactive login.

Return Value

bool