Created
March 23, 2015 15:13
-
-
Save jcornide/33f83b7789aff19794ec to your computer and use it in GitHub Desktop.
security yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
security: | |
providers: | |
backend_users: | |
entity: { class: BackendBundle:User } | |
encoders: | |
ElCodi\BackendBundle\Entity\User: bcrypt | |
firewalls: | |
dev: | |
pattern: ^/(_(profiler|wdt|error)|css|images|js)/ | |
security: false | |
default: | |
anonymous: ~ | |
backend: | |
anonymous: ~ | |
provider: backend_users | |
pattern: ^/backend | |
form_login: | |
login_path: backend_login | |
check_path: backend_login_check | |
logout: | |
path: backend_logout | |
target: backend_login | |
access_control: | |
- { path: /backend/login, roles: IS_AUTHENTICATED_ANONYMOUSLY } | |
- { path: ^/backend, roles: ROLE_ADMIN } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment