PHP Класс Contao\CoreBundle\Security\ContaoAuthenticator

Наследование: implements Symfony\Component\DependencyInjection\ContainerAwareInterface, implements Symfony\Component\Security\Http\Authentication\SimplePreAuthenticatorInterface, use trait Contao\CoreBundle\Framework\ScopeAwareTrait
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
authenticateToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, Symfony\Component\Security\Core\User\UserProviderInterface $userProvider, string $providerKey ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface | ContaoToken | AnonymousToken Authenticates a token.
createToken ( Request $request, string $providerKey ) : AnonymousToken Creates an authentication token.
supportsToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, string $providerKey ) : boolean Checks if the token is supported.

Приватные методы

Метод Описание
canSkipAuthentication ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token ) : boolean Checks if the authentication can be skipped.

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

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

Authenticates a token.
public authenticateToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, Symfony\Component\Security\Core\User\UserProviderInterface $userProvider, string $providerKey ) : Symfony\Component\Security\Core\Authentication\Token\TokenInterface | ContaoToken | AnonymousToken
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$userProvider Symfony\Component\Security\Core\User\UserProviderInterface
$providerKey string
Результат Symfony\Component\Security\Core\Authentication\Token\TokenInterface | Contao\CoreBundle\Security\Authentication\ContaoToken | Symfony\Component\Security\Core\Authentication\Token\AnonymousToken

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

Creates an authentication token.
public createToken ( Request $request, string $providerKey ) : AnonymousToken
$request Symfony\Component\HttpFoundation\Request
$providerKey string
Результат Symfony\Component\Security\Core\Authentication\Token\AnonymousToken

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

Checks if the token is supported.
public supportsToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, string $providerKey ) : boolean
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$providerKey string
Результат boolean