Skip to content

Instantly share code, notes, and snippets.

@sorenmalling
Created September 17, 2014 07:51
Show Gist options
  • Select an option

  • Save sorenmalling/1368f1f9b1cf0e156e19 to your computer and use it in GitHub Desktop.

Select an option

Save sorenmalling/1368f1f9b1cf0e156e19 to your computer and use it in GitHub Desktop.
TYPO3:
Flow:
security:
enable: TRUE
# firewall:
# filters:
# -
# patternType: 'ControllerObjectName'
# patternValue: 'Comundu\Core\Controller\ApiController'
# interceptor: 'RequireAuthentication'
authentication:
authenticationStrategy: atLeastOneToken
providers:
DefaultProvider:
provider: 'PersistedUsernamePasswordProvider'
requestPatterns:
controllerObjectName: 'Comundu\Core\Controller\.*'
entryPoint: 'WebRedirect'
entryPointOptions:
routeValues:
'@package': 'Comundu.Core'
'@controller': 'Login'
'@action': 'login'
'@format': 'html'
ApiProvider:
provider: 'Comundu\Core\Security\Authentication\Provider\ApiProvider'
token: 'Comundu\Core\Security\Authentication\Token\ApiToken'
requestPatterns:
controllerObjectName: 'Comundu\Core\Controller\ApiController\.*'
entryPoint: 'WebRedirect'
entryPointOptions:
routeValues:
'@package': 'Comundu.Core'
'@controller': 'Login'
'@action': 'login'
'@format': 'html'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment