Documentation

LoginLinkAuthenticator extends AbstractAuthenticator
in package
implements InteractiveAuthenticatorInterface

FinalYes

An optional base class that creates the necessary tokens for you.

Tags
author

Ryan Weaver ryan@symfonycasts.com

Table of Contents

Interfaces

InteractiveAuthenticatorInterface
This is an extension of the authenticator interface that must be used by interactive authenticators.

Properties

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

Methods

__construct()  : mixed
authenticate()  : Passport
createToken()  : TokenInterface
Shortcut to create a PostAuthenticationToken for you, if you don't really care about which authenticated token you're using.
isInteractive()  : bool
Should return true to make this authenticator perform an interactive login.
onAuthenticationFailure()  : Response
onAuthenticationSuccess()  : Response|null
supports()  : bool|null

Properties

Methods

__construct()

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

createToken()

Shortcut to create a PostAuthenticationToken for you, if you don't really care about which authenticated token you're using.

public createToken(Passport $passport, string $firewallName) : TokenInterface
Parameters
$passport : Passport

The passport returned from authenticate()

$firewallName : string
Return values
TokenInterface

isInteractive()

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

public isInteractive() : bool
Return values
bool

        
On this page

Search results