What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hey Guys! I'm currently thinking of how to restrict some ContentPages with a password. Context: Th
Hey Guys!
I'm currently thinking of how to restrict some ContentPages with a password.
Context:
The useCase is that some pages are just for customers who bought a special product. But there is no technical relation between customer and the bought product because the product could be bought elsewhere. So we have a complete new authenticationLayer without any relation here
So per page there must be the possibility to configure a password wich is needed to access the page.
In Zed it's pretty clear: Extend cmsPageForm, the DBschema and in our case the headLess implementation of the Cms.
but is there a neat and easy sulotion to provide the second loginLayer next to userLogin in yves?
Thx in advance!
Comments
-
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 ⚖️ - Guardians (admin)
Hey, one (not tooo simple) solution could be to add another firewall with a different authentication provider. Spryker uses in the end just the symfony auth system
0 -
Yes that was as well my first idea. Pretty complex and high effort for the target to archieve.
Second idea was to extend the controller and redirect to a LoginPage wich sets then a cookie with a logical hash wich i then can check on Request against the Page.
0 -
Feel free to challenge my idea 😄
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,084 ⚖️ - Guardians (admin)
Your idea seems to bring you to the goal 😄 depending if there are already ideas to have more logic I would still think about the more complex idea. if not then your idea should not cost much implementation cost for MVP
0 -
Ah yes. Any other restrictionCases, are user dependend and would have a technical customerRelation. And for that i would extend the CustomerAccessModule to restrict functionalities.
The future scope in this case is pretty clear so I'll try the cookieSolution without SymfAuth.
Thanks for your thougths! Helped a lot!
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 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
- 70 Spryker Safari Questions
- 50 Random