Impersonating Agent and Customer log out each other
Hi fellow Devs π
I noticed, that an agent that is impersonating a customer is being logged out if the customer logs in.
Also the other way around, a customer is being logged out if an agent impersonates this customer.
(Tested with
current master)
This seems to be related to `\SprykerShop\Yves\SessionAgentValidation\Plugin\Security\ValidateAgentSessionSecurityPlugin` and `\SprykerShop\Yves\SessionCustomerValidationPage\Plugin\Security\ValidateCustomerSessionSecurityPlugin`.
If you remove these two Plugins from `\Pyz\Yves\Security\SecurityDependencyProvider::getSecurityPlugins` you are able to keep both, agent and customer, logged in.
Is this intended behavior? Are there maybe any known workarounds?
Best, Pascal
Best Answer
-
Hi, Pascal!
You're absolutely right, these plugins are doing exactly what you described as
not desired behaviour
.The reason we use these plugins - you may have sync issues with cart, when a customer and his agent are working with it.
If you are sure that your customers are careful and do not try to act parallel to the agent, you may remove these plugins, or just one of them.
I hope it helps.
2
Answers
-
Hi, Pascal!
You're absolutely right, these plugins are doing exactly what you described as
not desired behaviour
.The reason we use these plugins - you may have sync issues with cart, when a customer and his agent are working with it.
If you are sure that your customers are careful and do not try to act parallel to the agent, you may remove these plugins, or just one of them.
I hope it helps.
2 -
Hey profuel,
thank you very much!
Best, Pascal
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 919 Developer Corner
- 779 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random