AuthorizationChecker

class AuthorizationChecker implements AuthorizationCheckerInterface AuthorizationChecker is the main authorization point of the Security component. It gives access to the token representing the current user authentication. Methods __construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, AccessDecisionManagerInterface $accessDecisionManager, bool $alwaysAuthenticate = false) Constructor. bool isGranted(mixed $attributes, mixed $object =

AuthenticationUtils::getLastAuthenticationError()

AuthenticationException|null getLastAuthenticationError(bool $clearSession = true) Parameters bool $clearSession Return Value AuthenticationException|null

AuthorizationCheckerInterface

interface AuthorizationCheckerInterface The AuthorizationCheckerInterface. Methods bool isGranted(mixed $attributes, mixed $object = null) Checks if the attributes are granted against the current authentication token and optionally supplied object. Details bool isGranted(mixed $attributes, mixed $object = null) Checks if the attributes are granted against the current authentication token and optionally supplied object. Parameters mixed $attri

AuthenticationTrustResolverInterface::isRememberMe()

bool isRememberMe(TokenInterface $token = null) Resolves whether the passed token implementation is authenticated using remember-me capabilities. Parameters TokenInterface $token Return Value bool

AuthenticationTrustResolverInterface::isFullFledged()

bool isFullFledged(TokenInterface $token = null) Resolves whether the passed token implementation is fully authenticated. Parameters TokenInterface $token Return Value bool

AuthenticationTrustResolverInterface

interface AuthenticationTrustResolverInterface Interface for resolving the authentication status of a given token. Methods 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 remember-me capabilities. bool isFullFledged(TokenInterface $token = null) Resolves whether the passed token impl

AuthenticationTrustResolverInterface::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::isRememberMe()

bool isRememberMe(TokenInterface $token = null) Resolves whether the passed token implementation is authenticated using remember-me capabilities. Parameters TokenInterface $token Return Value bool

AuthenticationSuccessHandlerInterface

interface AuthenticationSuccessHandlerInterface Interface for a custom authentication success handler. If you want to customize the success handling process, instead of overwriting the respective listener globally, you can set a custom success handler which implements this interface. Methods Response onAuthenticationSuccess(Request $request, TokenInterface $token) This is called when an interactive authentication attempt succeeds. This is called by authentication listeners inheriting fro

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