[Flow] Policy.yaml - Could not authenticate any token
Bastian Waidelich
bastian at typo3.org
Sat Jun 6 20:12:01 CEST 2015
On 02.06.15, at 21:02, Stefan Bruggmann wrote:
Hey,
> That did not work.
> After some unsuccsessful tests with a NeosRequestPattern.php, like it's
> done in Flowpack.Neos.FrontendLogin I checked the Configuration..
Ah, you should have mentioned that you're using that package ;)
So, right, the FrontendLogin package adds a new RequestPattern to the
"Typo3BackendProvider":
https://github.com/Flowpack/Flowpack.Neos.FrontendLogin/blob/master/Configuration/Settings.yaml#L9
That detects whether you're in "backend mode" based on the URL (whether
it's "/neos" or "@user-xyz").
This is *not* the case for your ajax requests, *unless* you make sure
their routes uriPatterns start with "neos/"!
> /flow configuration:validate
> Settings.TYPO3.Flow.security.authentication.providers.Typo3BackendProvider.requestPatterns.Flowpack\Neos\FrontendLogin\Security\NeosRequestPattern
> -> This property is not allowed here, check the spelling if you think it
> belongs here.
You can ignore those warnings. But thanks for the pointer, we adjusted
the configuration schema files to reflect the latest state[1].
Thanks for getting back ;)
[1] https://review.typo3.org/#/q/topic:fix-yaml-schema
--
Bastian Waidelich
More information about the Flow
mailing list