Documentation

FormLoginAuthenticator extends AbstractLoginFormAuthenticator
in package

A base class to make form login authentication easier!

Tags
author

Wouter de Jong wouter@wouterj.nl

author

Fabien Potencier fabien@symfony.com

final

Table of Contents

Properties

$failureHandler  : mixed
$httpKernel  : mixed
$httpUtils  : mixed
$options  : array<string|int, mixed>
$successHandler  : mixed
$userProvider  : mixed

Methods

__construct()  : mixed
authenticate()  : Passport
createToken()  : TokenInterface
isInteractive()  : bool
Should return true to make this authenticator perform an interactive login.
onAuthenticationFailure()  : Response
Override to change what happens after a bad username/password is submitted.
onAuthenticationSuccess()  : Response|null
setHttpKernel()  : void
start()  : Response
Override to control what happens when the user hits a secure page but isn't logged in yet.
supports()  : bool
{@inheritdoc}
getLoginUrl()  : string
Return the URL to the login page.
getCredentials()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct(HttpUtils $httpUtils, UserProviderInterface $userProvider, AuthenticationSuccessHandlerInterface $successHandler, AuthenticationFailureHandlerInterface $failureHandler, array<string|int, mixed> $options) : mixed
Parameters
$httpUtils : HttpUtils
$userProvider : UserProviderInterface
$successHandler : AuthenticationSuccessHandlerInterface
$failureHandler : AuthenticationFailureHandlerInterface
$options : array<string|int, mixed>

isInteractive()

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

public isInteractive() : bool
Return values
bool

supports()

{@inheritdoc}

public supports(Request $request) : bool

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 values
bool

        
On this page

Search results