Khandaker Toihidul Islam
Software Engineer
Backend : PHP | Mysql | Symfony | CakePhp | Wordpress | Drupal
Frontend : Node js | Vue js | React Js | Javascript | HTML | CSS | Bootstrap
Tools , Server : Nginx | Apache | Git | Jenkins | Jira | Asana | Silenium | Spira

Authentication for Symfony 4

We can define the access control in config/packkage/security.yaml

    access_control:
        # ccess for all
        - { path: ^/login$, roles: IS_AUTHENTICATED_ANONYMOUSLY }
        # Access for all logined users
        - { path: ^/dashboard, roles: IS_AUTHENTICATED_FULLY}
        # Access for ROLE_User
        - { path: ^/profile, roles: ROLE_USER }

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *