class TokenAuthenticator extends AbstractGuardAuthenticator

TokenAuthenticator for Api access

Properties

private ApiServiceInterface $apiService Stores ApiServiceInterface
private ConfigServiceInterface $configService Stores ConfigServiceInterface
private UserPasswordEncoderInterface $passwordEncoder Stores UserPasswordEncoderInterface
private UserServiceInterface $userService Stores UserServiceInterface

Methods

__construct(ApiServiceInterface $apiService, ConfigServiceInterface $configService, UserPasswordEncoderInterface $passwordEncoder, UserServiceInterface $userService)

No description

supports(Request $request)

No description

getCredentials(Request $request)

No description

getUser($credentials, UserProviderInterface $userProvider)

No description

checkCredentials($credentials, UserInterface $user)

No description

onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey)

No description

onAuthenticationFailure(Request $request, AuthenticationException $exception)

No description

start(Request $request, AuthenticationException $authException = null)

No description

supportsRememberMe()

No description

Details

at line 57
__construct(ApiServiceInterface $apiService, ConfigServiceInterface $configService, UserPasswordEncoderInterface $passwordEncoder, UserServiceInterface $userService)

Parameters

ApiServiceInterface $apiService
ConfigServiceInterface $configService
UserPasswordEncoderInterface $passwordEncoder
UserServiceInterface $userService

at line 70
supports(Request $request)

Parameters

Request $request

at line 75
getCredentials(Request $request)

Parameters

Request $request

at line 86
getUser($credentials, UserProviderInterface $userProvider)

Parameters

$credentials
UserProviderInterface $userProvider

at line 97
checkCredentials($credentials, UserInterface $user)

Parameters

$credentials
UserInterface $user

at line 102
onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey)

Parameters

Request $request
TokenInterface $token
$providerKey

at line 107
onAuthenticationFailure(Request $request, AuthenticationException $exception)

Parameters

Request $request
AuthenticationException $exception

at line 116
start(Request $request, AuthenticationException $authException = null)

Parameters

Request $request
AuthenticationException $authException

at line 125
supportsRememberMe()