PHP Класс Ojs\ApiBundle\Security\ApiKeyAuthenticator

Наследование: implements Symfony\Component\Security\Http\Authentication\SimplePreAuthenticatorInterface, implements Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$userProvider Ojs\ApiBundle\Security\ApiKeyUserProvider

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

Метод Описание
__construct ( Ojs\ApiBundle\Security\ApiKeyUserProvider $userProvider )
authenticateToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, Symfony\Component\Security\Core\User\UserProviderInterface $userProvider, $providerKey )
createToken ( Request $request, $providerKey )
onAuthenticationFailure ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $exception )
supportsToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, $providerKey )

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

__construct() публичный метод

public __construct ( Ojs\ApiBundle\Security\ApiKeyUserProvider $userProvider )
$userProvider Ojs\ApiBundle\Security\ApiKeyUserProvider

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

public authenticateToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, Symfony\Component\Security\Core\User\UserProviderInterface $userProvider, $providerKey )
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface
$userProvider Symfony\Component\Security\Core\User\UserProviderInterface

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

public createToken ( Request $request, $providerKey )
$request Symfony\Component\HttpFoundation\Request

onAuthenticationFailure() публичный метод

public onAuthenticationFailure ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $exception )
$request Symfony\Component\HttpFoundation\Request
$exception Symfony\Component\Security\Core\Exception\AuthenticationException

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

public supportsToken ( Symfony\Component\Security\Core\Authentication\Token\TokenInterface $token, $providerKey )
$token Symfony\Component\Security\Core\Authentication\Token\TokenInterface

Описание свойств

$userProvider защищенное свойство

protected ApiKeyUserProvider,Ojs\ApiBundle\Security $userProvider
Результат Ojs\ApiBundle\Security\ApiKeyUserProvider