Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.15 KB | None | 0 0
  1. security:
  2.    # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
  3.     providers:
  4.         users:
  5.             entity:
  6.                 class: 'App\Entity\User'
  7.                 property: 'login'
  8.        
  9.     encoders:
  10.         App\Entity\User:
  11.             algorithm: auto
  12.     firewalls:
  13.         dev:
  14.             pattern: ^/(_(profiler|wdt)|css|images|js)/
  15.             security: false
  16.         main:
  17.             anonymous: ~
  18.             logout: ~
  19.  
  20.             guard:
  21.                 authenticators:
  22.                    - App\Security\TokenAuthenticator
  23.  
  24.             # activate different ways to authenticate
  25.  
  26.             # http_basic: true
  27.             # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
  28.  
  29.             # form_login: true
  30.             # https://symfony.com/doc/current/security/form_login_setup.html
  31.  
  32.     # Easy way to control access for large sections of your site
  33.     # Note: Only the *first* access control that matches will be used
  34.     access_control:
  35.        # - { path: ^/admin, roles: ROLE_ADMIN }
  36.         # - { path: ^/profile, roles: ROLE_USER }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement