Property | Type | Description | |
---|---|---|---|
$accessDecisionManager | |||
$accountChecker | |||
$logger | |||
$provider | |||
$role | |||
$securityContext | |||
$usernameParameter |
Method | Description | |
---|---|---|
__construct ( Symfony\Component\Security\SecurityContext $securityContext, Symfony\Component\Security\User\UserProviderInterface $provider, Symfony\Component\Security\User\AccountCheckerInterface $accountChecker, Symfony\Component\Security\Authorization\AccessDecisionManagerInterface $accessDecisionManager, Symfony\Component\HttpKernel\Log\LoggerInterface $logger = null, $usernameParameter = '_switch_user', $role = 'ROLE_ALLOWED_TO_SWITCH' ) | Constructor. | |
handle ( Symfony\Component\EventDispatcher\Event $event ) | Handles digest authentication. | |
register ( |
Method | Description | |
---|---|---|
attemptExitUser ( |
Attempts to exit from an already switched user. | |
attemptSwitchUser ( |
Attempts to switch to another user. | |
getOriginalToken ( Symfony\Component\Security\Authentication\Token\TokenInterface $token ) : Symfony\Component\Security\Authentication\Token\TokenInterface | false | Gets the original Token from a switched one. |
public __construct ( Symfony\Component\Security\SecurityContext $securityContext, Symfony\Component\Security\User\UserProviderInterface $provider, Symfony\Component\Security\User\AccountCheckerInterface $accountChecker, Symfony\Component\Security\Authorization\AccessDecisionManagerInterface $accessDecisionManager, Symfony\Component\HttpKernel\Log\LoggerInterface $logger = null, $usernameParameter = '_switch_user', $role = 'ROLE_ALLOWED_TO_SWITCH' ) | ||
$securityContext | Symfony\Component\Security\SecurityContext | |
$provider | Symfony\Component\Security\User\UserProviderInterface | |
$accountChecker | Symfony\Component\Security\User\AccountCheckerInterface | |
$accessDecisionManager | Symfony\Component\Security\Authorization\AccessDecisionManagerInterface | |
$logger | Symfony\Component\HttpKernel\Log\LoggerInterface |
protected attemptExitUser ( |
||
$request | A Request instance | |
return | Symfony\Component\Security\Authentication\Token\TokenInterface | The original TokenInterface instance |
protected attemptSwitchUser ( |
||
$request | A Request instance | |
return | Symfony\Component\Security\Authentication\Token\TokenInterface | null | The new TokenInterface if successfully switched, null otherwise |
protected getOriginalToken ( Symfony\Component\Security\Authentication\Token\TokenInterface $token ) : Symfony\Component\Security\Authentication\Token\TokenInterface | false | ||
$token | Symfony\Component\Security\Authentication\Token\TokenInterface | A switched TokenInterface instance |
return | Symfony\Component\Security\Authentication\Token\TokenInterface | false | The original TokenInterface instance, false if the current TokenInterface is not switched |
public handle ( Symfony\Component\EventDispatcher\Event $event ) | ||
$event | Symfony\Component\EventDispatcher\Event | An Event instance |