Configuring the security access
Last updated
Last updated
Now that you have an admin panel, you want to make sure admin users are the only ones allowed to access its URL. To secure your back-office interface, you can simply resort to Symfony's Security configuration with 4 basic steps :
You can use the Symfony maker to create a new user.
Learn more on how to create a User
Here is an example of a user provider configuration:
Learn more on how to create a user provider on the Symfony documentation
Here is an example of how to configure a firewall for your admin routes:
Learn more on how to configure the firewall on the Symfony documentation
Only admin users will have access to "/admin" routes.
Learn more on how to configure Access Control Authorization on the Symfony documentation