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

Explain format of paths in security.access_control #10964

Closed
alexislefebvre opened this issue Feb 5, 2019 · 1 comment
Closed

Explain format of paths in security.access_control #10964

alexislefebvre opened this issue Feb 5, 2019 · 1 comment
Labels
⭐️ EU-FOSSA Hackathon https://symfony.com/blog/the-symfony-and-api-platform-hackathon-is-coming hasPR A Pull Request has already been submitted for this issue. Security
Milestone

Comments

@alexislefebvre
Copy link
Contributor

The following pages explain how the firewall works:

They never explain that we can use a regular expression.

For example, we use this configuration in on of our projects and it works:

- { path: ^/api/(entity1|entity2)/\d+$, methods: ['GET'], roles: ROLE_USER }

It matches /api/entity1/528491 and /api/entity2/528491.

I think that the documentation should explain that we can use regular expression in path.

@xabbuh xabbuh added the Security label Feb 7, 2019
@OskarStark
Copy link
Contributor

This should be added to the docs 👍

@javiereguiluz javiereguiluz added this to the 3.4 milestone Feb 19, 2019
@wouterj wouterj added the ⭐️ EU-FOSSA Hackathon https://symfony.com/blog/the-symfony-and-api-platform-hackathon-is-coming label Apr 6, 2019
@javiereguiluz javiereguiluz added the hasPR A Pull Request has already been submitted for this issue. label Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⭐️ EU-FOSSA Hackathon https://symfony.com/blog/the-symfony-and-api-platform-hackathon-is-coming hasPR A Pull Request has already been submitted for this issue. Security
Projects
None yet
Development

No branches or pull requests

5 participants