AuthenticationTrustResolver::isAnonymous()

bool isAnonymous(TokenInterface $token = null) Resolves whether the passed token implementation is authenticated anonymously. If null is passed, the method must return false. Parameters TokenInterface $token Return Value bool

AuthenticationTrustResolver

class AuthenticationTrustResolver implements AuthenticationTrustResolverInterface The default implementation of the authentication trust resolver. Methods __construct(string $anonymousClass, string $rememberMeClass) Constructor. bool isAnonymous(TokenInterface $token = null) Resolves whether the passed token implementation is authenticated anonymously. bool isRememberMe(TokenInterface $token = null) Resolves whether the passed token implementation is authenticated using remembe

AuthenticationProviderManager::setEventDispatcher()

setEventDispatcher(EventDispatcherInterface $dispatcher) Parameters EventDispatcherInterface $dispatcher

AuthenticationServiceException

class AuthenticationServiceException extends AuthenticationException AuthenticationServiceException is thrown when an authentication request could not be processed due to a system problem. Methods TokenInterface getToken() Get the token. from AuthenticationException setToken(TokenInterface $token) Set the token. from AuthenticationException serialize() from AuthenticationException unserialize($str) from AuthenticationException string getMessageKey() Message key to be us

AuthenticationProviderManager::authenticate()

TokenInterface authenticate(TokenInterface $token) Attempts to authenticate a TokenInterface object. Parameters TokenInterface $token The TokenInterface instance to authenticate Return Value TokenInterface An authenticated TokenInterface instance, never null Exceptions AuthenticationException if the authentication fails

AuthenticationManagerInterface

interface AuthenticationManagerInterface AuthenticationManagerInterface is the interface for authentication managers, which process Token authentication. Methods TokenInterface authenticate(TokenInterface $token) Attempts to authenticate a TokenInterface object. Details TokenInterface authenticate(TokenInterface $token) Attempts to authenticate a TokenInterface object. Parameters TokenInterface $token The TokenInterface instance to authentica

AuthenticationProviderManager

class AuthenticationProviderManager implements AuthenticationManagerInterface AuthenticationProviderManager uses a list of AuthenticationProviderInterface instances to authenticate a Token. Methods __construct(array $providers, bool $eraseCredentials = true) Constructor. setEventDispatcher(EventDispatcherInterface $dispatcher) TokenInterface authenticate(TokenInterface $token) Attempts to authenticate a TokenInterface object. Details __construc

AuthenticationProviderInterface

interface AuthenticationProviderInterface implements AuthenticationManagerInterface AuthenticationProviderInterface is the interface for all authentication providers. Concrete implementations processes specific Token instances. Constants USERNAME_NONE_PROVIDED Use this constant for not provided username. Methods TokenInterface authenticate(TokenInterface $token) Attempts to authenticate a TokenInterface object. from AuthenticationManagerInterface bool supports(TokenInterface $to

AuthenticationFailureHandlerInterface

interface AuthenticationFailureHandlerInterface Interface for custom authentication failure handlers. If you want to customize the failure handling process, instead of overwriting the respective listener globally, you can set a custom failure handler which implements this interface. Methods Response onAuthenticationFailure(Request $request, AuthenticationException $exception) This is called when an interactive authentication attempt fails. This is called by authentication listeners inher

AuthenticationFailureEvent

class AuthenticationFailureEvent extends AuthenticationEvent This event is dispatched on authentication failure. Methods Boolean isPropagationStopped() Returns whether further event listeners should be triggered. from Event stopPropagation() Stops the propagation of the event to further event listeners. from Event setDispatcher(EventDispatcherInterface $dispatcher) Stores the EventDispatcher that dispatches this Event from Event EventDispatcherInterface getDispatcher() Return