Advertisement
Guest User

security.yaml

a guest
Feb 18th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. security:
  2. encoders:
  3. App\Entity\Usuario:
  4. algorithm: argon2i
  5. memory_cost: 2048
  6. time_cost: 2
  7. threads: 2
  8. # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
  9. providers:
  10. app_user_provider:
  11. entity:
  12. class: App\Entity\Usuario
  13. #posible error por nombre de property
  14. property: codusario
  15. firewalls:
  16. dev:
  17. pattern: ^/(_(profiler|wdt)|css|images|js)/
  18. security: false
  19. main:
  20. anonymous: true
  21.  
  22. # activate different ways to authenticate
  23.  
  24. http_basic: true
  25. # https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
  26.  
  27. form_login:
  28. login_path: login
  29. check_path: login
  30. default_target_path: bandeja
  31. provider: app_user_provider
  32. # https://symfony.com/doc/current/security/form_login_setup.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement