PHP Class Ojs\ApiBundle\Security\ApiKeyAuthenticator

Inheritance: implements Symfony\Component\Security\Http\Authentication\SimplePreAuthenticatorInterface, implements Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface
Mostra file Open project: ojs/ojs

Protected Properties

Property Type Description
$userProvider Ojs\ApiBundle\Security\ApiKeyUserProvider

Public Methods

Method Description
__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 )

Method Details

__construct() public method

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

authenticateToken() public method

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 method

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

onAuthenticationFailure() public method

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 method

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

Property Details

$userProvider protected_oe property

protected ApiKeyUserProvider,Ojs\ApiBundle\Security $userProvider
return Ojs\ApiBundle\Security\ApiKeyUserProvider