8000 [Security] Deprecated not being logged out after user change by linaori · Pull Request #23882 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Security] Deprecated not being logged out after user change #23882

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added 4.0 changelog
  • Loading branch information
Iltar van der Berg committed Sep 26, 2017
commit 268e922862ee1f1793be6a93f6259adf81b0a283
6 changes: 6 additions & 0 deletions UPGRADE-4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,9 @@ Security

* Support for defining voters that don't implement the `VoterInterface` has been removed.

* Calling `ContextListener::setLogoutOnUserChange(false)` won't have any
effect anymore.

SecurityBundle
--------------

Expand All @@ -660,6 +663,9 @@ SecurityBundle
`Symfony\Component\Security\Acl\Model\MutableAclProviderInterfaceConnection`
as first argument.

* The firewall option `logout_on_user_change` is now always true, which will
trigger a logout if the user changes between requests.

Serializer
----------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
class ContextListener implements ListenerInterface
{
private $tokenStorage;
private $contextKey;
private $sessionKey;
private $logger;
private $userProviders;
Expand All @@ -61,6 +62,7 @@ public function __construct(TokenStorageInterface $tokenStorage, $userProviders,

$this->tokenStorage = $tokenStorage;
$this->userProviders = $userProviders;
$this->contextKey = $contextKey;
$this->sessionKey = '_security_'.$contextKey;
$this->logger = $logger;
$this->dispatcher = $dispatcher;
Expand Down
0