All routes redirected me to /login route
Following the upgrade to the latest version of the B2B demo shop in 202311, every route redirects to the login route, subsequently resulting in an ERR_TOO_MANY_REDIRECTS error. Additionally, I am unable to access any pages while in anonymous mode.
Answers
-
Hello. I didn't have that exact error, but something similar where after the upgrade when I would login and after that add something to cart, I would be redirected to the homepage and I would be logged out. For me, the problem was the max-age option that was added to the HTTP request in the config file. After I removed the option, everything started to work again es expected. I'm not sure if this is the problem also on your side, but it's worth to try.
$config[HttpConstants::YVES_HTTP_CACHE_CONTROL_CONFIG] = [ 'public' => true,
'max-age' => 3600,];0 -
I think this is not my case unfortunately
because all routes redirect to log-in automatically and at the end gives me 502 error
0 -
The issue with CustomerPage module when registering customer page security plugins it gives me an exception regarding anonymous auth entry
Spryker\Shared\Security\Exception\AuthenticationEntryNotRegisteredException - Authentication entry `anonymous` is not registered.
0 -
When I register those 2 deprecated plugins
AgentPageSecurityPlugin(),CustomerPageSecurityPlugin(),
it gives me the above error, But If I register the new plugins it will cause too many redirects issue
YvesAgentPageSecurityPlugin,YvesCustomerPageSecurityPlugin
0 -
Hi @M.abdallah ,
I can see I have today the same issue than you.
When I upgrade my app from 202212.0 to 202307.0 (I'd rather upgrade step by step to avoid to stack issues), I had to replace the SecurityPlugins by Yves and Zed SecurityPlugins because of the same
AuthenticationEntryNotRegisteredException
. And since I did that, I'm stuck in a redirect loop, could you share how you have fixed that please?0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 65 Spryker News
- 879 Developer Corner
- 743 Spryker Development
- 84 Spryker Dev Environment
- 360 Spryker Releases
- 3 Oryx frontend framework
- 33 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 22 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
- 68 Spryker Safari Questions
- 50 Random