-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[2.2][Security] concurrent sessions #786
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
Conversation
Shouldn't it be what the |
|
||
$this | ||
->setName('init:concurrent-session') | ||
->setDescription('Executes the SQL needed to generate the database schema reqired by the concurrent sessions feature.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/reqired/required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo still needs to be fixed
I guess the big question if to use the ORM or the DBAL. obviously there will be a need for some model object either way. |
…Session\SessionRegistryStorageInterface
…Session\SessionRegistryStorageInterface
* | ||
* @param Request $request | ||
* @param TokenInterface $token | ||
* @return void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove these @return void
. Sf2 does not use them. And this method should use {@inheritdoc}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@fabpot @schmittjoh what do you think about it ? |
sorry I haven't reacted to your comments, customer is not requesting the feature any more and I need to continue on my own time, of which I have little atm. I basically agree with your suggestions and will implement them asap. |
…ependencyInjection/SecurityExtension::sessionRegistryLoad
|
||
parent::onAuthentication($request, $token); | ||
|
||
if ($originalSessionId != $request->getSession()->getId()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be !==
Tests are missing |
This is tagged with [2.2] what's the status of it? If it needs to be rebased I'm in for helping out, as well as the reminder of comments from @stof |
I'm closing this old PR as there is no more activity on it and because it probably does not apply anymore cleanly. I've opened a ticket about this feature request at #7845 |
an implementation of the Spring concurrent sessions in the Security Component, now using Doctrine DBAL. Can be configured like:
to init, run the init:concurrent-session command, which will create a DBAL implementation of the Symfony\Component\Security\Http\Session\SessionRegistryStorageInterface. You can also provide a custom implementation.