PHP Class Neos\Neos\Controller\LoginController

Inheritance: extends Neos\Flow\Security\Authentication\Controller\AbstractAuthenticationController
Afficher le fichier Open project: neos/neos-development-collection

Protected Properties

Свойство Type Description
$backendRedirectionService Neos\Neos\Service\BackendRedirectionService
$domainRepository Neos\Neos\Domain\Repository\DomainRepository
$loginTokenCache Neos\Cache\Frontend\StringFrontend
$session Neos\Flow\Session\SessionInterface
$sessionManager Neos\Flow\Session\SessionManagerInterface
$sessionName string
$siteRepository Neos\Neos\Domain\Repository\SiteRepository
$supportedMediaTypes array
$viewFormatToObjectNameMap array

Méthodes publiques

Méthode Description
indexAction ( string $username = null, boolean $unauthorized = false ) : void Default action, displays the login screen
initializeIndexAction ( ) : void
logoutAction ( ) : void Logs out a - possibly - currently logged in account.
tokenLoginAction ( string $token ) : void Logs a user in if a session identifier is available under the given token in the token cache.

Méthodes protégées

Méthode Description
getErrorFlashMessage ( ) : boolean Disable the default error flash message
onAuthenticationFailure ( AuthenticationRequiredException $exception = null ) : void Is called if authentication failed.
onAuthenticationSuccess ( ActionRequest $originalRequest = null ) : void Is called if authentication was successful.
replaceSessionCookie ( string $sessionIdentifier ) : void Sets the session cookie to the given identifier, overriding an existing cookie.

Method Details

getErrorFlashMessage() protected méthode

Disable the default error flash message
protected getErrorFlashMessage ( ) : boolean
Résultat boolean

indexAction() public méthode

Default action, displays the login screen
public indexAction ( string $username = null, boolean $unauthorized = false ) : void
$username string Optional: A username to pre-fill into the username field
$unauthorized boolean
Résultat void

initializeIndexAction() public méthode

public initializeIndexAction ( ) : void
Résultat void

logoutAction() public méthode

The possible redirection URI is queried from the redirection service at first, before the actual logout takes place, and the session gets destroyed.
public logoutAction ( ) : void
Résultat void

onAuthenticationFailure() protected méthode

Is called if authentication failed.
protected onAuthenticationFailure ( AuthenticationRequiredException $exception = null ) : void
$exception Neos\Flow\Security\Exception\AuthenticationRequiredException The exception thrown while the authentication process
Résultat void

onAuthenticationSuccess() protected méthode

Is called if authentication was successful.
protected onAuthenticationSuccess ( ActionRequest $originalRequest = null ) : void
$originalRequest Neos\Flow\Mvc\ActionRequest The request that was intercepted by the security framework, NULL if there was none
Résultat void

replaceSessionCookie() protected méthode

Sets the session cookie to the given identifier, overriding an existing cookie.
protected replaceSessionCookie ( string $sessionIdentifier ) : void
$sessionIdentifier string
Résultat void

tokenLoginAction() public méthode

Logs a user in if a session identifier is available under the given token in the token cache.
public tokenLoginAction ( string $token ) : void
$token string
Résultat void

Property Details

$backendRedirectionService protected_oe property

protected BackendRedirectionService,Neos\Neos\Service $backendRedirectionService
Résultat Neos\Neos\Service\BackendRedirectionService

$domainRepository protected_oe property

protected DomainRepository,Neos\Neos\Domain\Repository $domainRepository
Résultat Neos\Neos\Domain\Repository\DomainRepository

$loginTokenCache protected_oe property

protected StringFrontend,Neos\Cache\Frontend $loginTokenCache
Résultat Neos\Cache\Frontend\StringFrontend

$session protected_oe property

protected SessionInterface,Neos\Flow\Session $session
Résultat Neos\Flow\Session\SessionInterface

$sessionManager protected_oe property

protected SessionManagerInterface,Neos\Flow\Session $sessionManager
Résultat Neos\Flow\Session\SessionManagerInterface

$sessionName protected_oe property

protected string $sessionName
Résultat string

$siteRepository protected_oe property

protected SiteRepository,Neos\Neos\Domain\Repository $siteRepository
Résultat Neos\Neos\Domain\Repository\SiteRepository

$supportedMediaTypes protected_oe property

protected array $supportedMediaTypes
Résultat array

$viewFormatToObjectNameMap protected_oe property

protected array $viewFormatToObjectNameMap
Résultat array