Skip to content

Instantly share code, notes, and snippets.

@wouterj
Created January 25, 2016 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wouterj/cf14f45f8e55170c5fcc to your computer and use it in GitHub Desktop.
Save wouterj/cf14f45f8e55170c5fcc to your computer and use it in GitHub Desktop.
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
pattern: ^/
provider: db_provider
anonymous: ~
http_basic: ~
form_login:
login_path: /login
check_path: /login_check
csrf_token_generator: security.csrf.token_manager
logout:
path: /logout
target: /
access_control:
- { path: ^/admin, roles: ROLE_ADMIN }
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/registration, roles: IS_AUTHENTICATED_ANONYMOUSLY }
- { path: ^/, roles: ROLE_USER }
This ad is supporting your extension ruul (screen ruler): More info | Privacy Policy | Hide on this page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment