Skip to content

Instantly share code, notes, and snippets.

@benjaminrau
Last active August 29, 2015 14:22
Show Gist options
  • Save benjaminrau/f4b993b0a601dc25a0b1 to your computer and use it in GitHub Desktop.
Save benjaminrau/f4b993b0a601dc25a0b1 to your computer and use it in GitHub Desktop.
# #
# Security policy for the Cf.Shop package #
# #
resources:
methods:
Cf_Shop: 'method(Cf\Shop\Controller\ShopController->.*Action())'
Cf_Shop_ShopAdmin_Person: 'method(Cf\Shop\Controller\PersonController->.*Action())'
Cf_Shop_ShopAdmin_Order: 'method(Cf\Shop\Controller\OrderController->.*Action())'
acls:
Everybody:
methods:
Cf_Shop: GRANT
'TYPO3.Neos:Editor':
methods:
Cf_Shop_ShopAdmin_Person: GRANT
Cf_Shop_ShopAdmin_Order: GRANT
security:
enable: TRUE
authenticationStrategy: allTokens
authentication:
providers:
DefaultProvider:
provider: PersistedUsernamePasswordProvider
entryPoint: 'WebRedirect'
entryPointOptions:
routeValues:
'@package': 'TYPO3.Neos'
'@controller': 'Login'
'@action': 'index'
authorization:
accessDecisionVoters: [TYPO3\Flow\Security\Authorization\Voter\Policy]
#allowAccessIfAllVotersAbstain: TRUE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment