Documentation

JsonLoginAuthenticator
in package
implements InteractiveAuthenticatorInterface

Provides a stateless implementation of an authentication via a JSON document composed of a username and a password.

Tags
author

Kévin Dunglas dunglas@gmail.com

author

Wouter de Jong wouter@wouterj.nl

final

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
$options  : array<string|int, mixed>
$propertyAccessor  : mixed
$successHandler  : mixed
$translator  : 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|null
onAuthenticationSuccess()  : Response|null
setTranslator()  : mixed
supports()  : bool|null
getCredentials()  : mixed

Properties

Methods

__construct()

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

isInteractive()

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

public isInteractive() : bool
Return values
bool

        
On this page

Search results