Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a regex to check if auth must be done #7

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Add a regex to check if auth must be done #7

merged 1 commit into from
Oct 14, 2024

Conversation

mattbild
Copy link
Contributor

Sur une page définie comme accessible à tous dans le security.yaml,

    access_control:
        - { path: ^/public, roles: PUBLIC_ACCESS }

on a parfois besoin de récupérer le user lorsqu'il existe (le rediriger, lui afficher un contenu différent ...)
Actuellement ce n'est pas possible.
L'ajout d'un paramètre dans la config du bundle doit permettre de le faire.
Il faut donc, ajouter dans cette regex TOUTES les routes définies comme publiques pour lesquelles on veut pouvoir récupérer le user

@benjhoo benjhoo merged commit da81fb8 into main Oct 14, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants