[FLOW3-general] How to secure a controller?
Qbus | Axel Wüstemann
awu at qbus.de
Thu Jan 10 21:46:46 CET 2013
Hello,
I simply want to redirect from the standard controller to the login
controller if I'm not yet logged in. How to achive that? Or more
generaly: How to secure a controller?
What I did:
1. I made the appropriate settings
security:
authentication:
providers:
DefaultProvider:
provider: PersistedUsernamePasswordProvider
requestPatterns:
controllerObjectName: QBUS\BestDesQ\Controller\.*
entryPoint: 'WebRedirect'
entryPointOptions:
uri: login
2. I bult a policy
roles:
Administrator: []
If I call my standard controller by http:://bestdesq it shows the index
action. Instead I would exepect it redirects to http:://bestdesq/login
What code I have probably additional add to my controller(s)?
Thank you
Axel
More information about the Flow
mailing list