netgen-layouts / layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.
https://netgen.io/layouts
MIT License
36 stars 6 forks source link

Support for Symfony's "authenticator manager" and CSRF #28

Closed weaverryan closed 1 year ago

weaverryan commented 2 years ago

Hi!

I think we've talked about this in a different channel before, but I don't think that layouts (yet) supports the new "authenticator system: (i.e. enable_authenticator_manager: true in security.yaml). If it's set to true, then while working on a layout, I sometimes see a CSRF failed error:

Screen Shot 2022-08-24 at 3 55 03 PM

This occurred after modifying that query.doctrine_search.title field (that's from a custom query type I have).

Cheers!

emodric commented 2 years ago

Hi @weaverryan !

Yeah, no support for enable_authenticator_manager: true yet. The main reason why support is not yet implemented is that Netgen Layouts, due to Netgen's own needs, still supports Symfony 3.4 and 4.4, so new authentication manager is not yet a priority.

emodric commented 2 years ago

@weaverryan I suppose you'd wanna know that I managed to get Layouts running on Symfony 6, and so far no issues with authentication manager. I will test further though.

emodric commented 1 year ago

Closing as I can't reproduce this issue any more.

@weaverryan Feel free to reopen if you run into it again!