yoesoff

security.yml

Sep 29th, 2019
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.41 KB | None | 0 0
  1. security:
  2.     encoders:
  3.         App\Entity\User:
  4.             algorithm: auto
  5.     providers:
  6.         chained_db_provider:
  7.             chain:
  8.                 providers: [app_db_provider_username, app_db_provider_email]
  9.         app_db_provider_username:
  10.             entity:
  11.                 class: App\Entity\User
  12.                 property: username
  13.         app_db_provider_email:
  14.             entity:
  15.                 class: App\Entity\User
  16.                 property: email
  17.     firewalls:
  18.         dev:
  19.             pattern: ^/(_(profiler|wdt)|css|images|js)/
  20.             security: false
  21.         utama:
  22.             pattern: ^/
  23.             anonymous: true
  24.             stateless: false
  25.             security: true
  26.             provider: chained_db_provider
  27.             form_login:
  28.                 check_path: security_login
  29.                 login_path: security_login
  30.                 csrf_token_generator: security.csrf.token_manager
  31.                 default_target_path: home
  32.                 always_use_default_target_path: true
  33.                 use_referer: true
  34.                 failure_path: security_login
  35.                 username_parameter: _username
  36.                 password_parameter: _password
  37.                 csrf_parameter: _csrf_token
  38.  
  39.             logout:
  40.                 path: security_logout
  41.                 target: security_login
  42.     access_control:
  43.        #- { path: ^/, roles: ROLE_USER }
Advertisement
Add Comment
Please, Sign In to add comment