[FLOW3-general] Policies not working
Martin
titusmailing at googlemail.com
Tue Aug 14 16:36:31 CEST 2012
Hi Oliver,
thanks but still not working.
Is there an working example somewhere?
But even in the Security_logs is no hint about access theses roles.
Do I just have to put up Settings and Policy and it should work?
I am reading the Securitypart up and down and can't figure out what gets
wrong.
BTW, I am on FLOW3 1.1
Cheers
Martin
Thanks for that @Robert hint with the cache.
On 08/14/2012 04:19 PM, Oliver Beck wrote:
> Hi Martin
>
> Try this out:
>
> resources:
> methods:
> RestrictedArea:
> 'method(Abgabe\Controller\ExerciseController->.*Action())'
>
> Perhaps you should clear the cache
>
> Kind Regards
>
> Oliver
>
> -----Ursprüngliche Nachricht-----
> Von: flow3-general-bounces at lists.typo3.org
> [mailto:flow3-general-bounces at lists.typo3.org] Im Auftrag von Martin
> Gesendet: Dienstag, 14. August 2012 16:08
> An: flow3-general at lists.typo3.org
> Betreff: [FLOW3-general] Policies not working
>
> Hi List,
>
> I have again a beginner question with restricted Access on Classes and/or
> methods. Both restrictions are not working.
>
> My plan is to protect the whole Controller for being accessed. All my
> tryouts went wrong, doesn't matter what i put in RestrictedArea.
>
> My Policy.yaml:
>
> resources:
> methods:
> RestrictedArea: 'method(Abgabe\ExerciseController->.*Action())'
> #methods(\Abgabe\Controller\ExerciseController->IndexAction())'
>
> roles:
> Student: []
> # Hiwi: [Student]
> Administrator: []
> acls:
> Student:
> methods:
> RestrictedArea: DENY
> Administrator:
> methods:
> RestrictedArea: GRANT
>
> ############# POLICY END ########
> My Package Settings.yaml
>
> TYPO3:
> FLOW3:
> security:
> enable: true
> authentication:
> # authenticationStrategy: oneToken
> providers:
> DefaultProvider:
> provider: PersistedUsernamePasswordProvider
> entryPoint: 'WebRedirect'
> entryPointOptions:
> uri: 'abgabe/exercise/'
>
> ############## SETTINGS END ###########
>
> Log in is working, also the added roles.
>
> Can someone give me a hint where to look, I don't get it from the manual
> neither the Conference or Blog-package.
>
> Many thanks in Advance!
>
> Greetz
>
> Martin
> _______________________________________________
> FLOW3-general mailing list
> FLOW3-general at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
>
More information about the FLOW3-general
mailing list