PHP Интерфейс eZ\Publish\Core\MVC\Symfony\Security\Authentication\AuthenticatorInterface

Authenticators are meant to be used to run authentication programmatically, i.e. outside the firewall context.
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
authenticate ( Request $request ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface Runs authentication against provided request and returns the authenticated security token.
logout ( Request $request ) : Response Performs logout by running configured logout handlers.

Описание методов

authenticate() публичный Метод

This method typically does: - The authentication by itself (i.e. matching a user) - User type checks (e.g. check user activation) - Inject authenticated token in the SecurityContext - (optional) Trigger SecurityEvents::INTERACTIVE_LOGIN event
public authenticate ( Request $request ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\Security\Core\Authentication\Token\TokenInterface

logout() публичный Метод

Performs logout by running configured logout handlers.
public logout ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\Response