Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.04 KB | None | 0 0
  1. # To get started with security, check out the documentation:
  2. # http://symfony.com/doc/current/book/security.html
  3. security:
  4.     encoders:
  5.         AppBundle\Entity\EbulkVerifier:
  6.             algorithm: bcrypt
  7.  
  8.     # http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
  9.     providers:
  10.         my_db_provider:
  11.           entity:
  12.             class: AppBundle:EbulkVerifier
  13.             property: workEmail
  14.  
  15.     access_control:
  16.        - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
  17.        - { path: ^/, roles: ROLE_USER }
  18.  
  19.     firewalls:
  20.        # disables authentication for assets and the profiler, adapt it according to your needs
  21.         dev:
  22.             pattern: ^/(_(profiler|wdt)|css|images|js)/
  23.             security: false
  24.  
  25.         secured:
  26.             anonymous: ~
  27.             pattern: ^/
  28.             form_login:
  29.               login_path: login
  30.               check_path: login
  31.             provider: my_db_provider
  32.             logout:
  33.               path: /logout
  34.               target: /
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement