GuardAuthenticatorHandler
class GuardAuthenticatorHandler
A utility class that does much of the work during the guard authentication process.
By having the logic here instead of the listener, more of the process can be called directly (e.g. for manual authentication) or overridden.
Methods
No description
Authenticates the given token in the system.
Returns the "on success" response for the given GuardAuthenticator.
Convenience method for authenticating the user and returning the Response if any for success.
Handles an authentication failure and returns the Response for the GuardAuthenticator.
Details
at line line 39
__construct(TokenStorageInterface $tokenStorage, EventDispatcherInterface $eventDispatcher = null)
at line line 51
authenticateWithToken(TokenInterface $token, Request $request)
Authenticates the given token in the system.
at line line 71
null|Response
handleAuthenticationSuccess(TokenInterface $token, Request $request, GuardAuthenticatorInterface $guardAuthenticator, string $providerKey)
Returns the "on success" response for the given GuardAuthenticator.
at line line 98
Response|null
authenticateUserAndHandleSuccess(UserInterface $user, Request $request, GuardAuthenticatorInterface $authenticator, string $providerKey)
Convenience method for authenticating the user and returning the Response if any for success.
at line line 120
null|Response
handleAuthenticationFailure(AuthenticationException $authenticationException, Request $request, GuardAuthenticatorInterface $guardAuthenticator, string $providerKey)
Handles an authentication failure and returns the Response for the GuardAuthenticator.