Advertisement
Guest User

Untitled

a guest
Mar 13th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. # app/config/security.yml
  2. security:
  3. firewalls:
  4. secured_area:
  5. pattern: ^/
  6. anonymous: ~
  7. http_basic:
  8. realm: "Secured Demo Area"
  9.  
  10. access_control:
  11. - { path: ^/admin, roles: ROLE_ADMIN }
  12.  
  13. providers:
  14. in_memory:
  15. users:
  16. ryan: { password: ryanpass, roles: 'ROLE_USER' }
  17. admin: { password: kitten, roles: 'ROLE_ADMIN' }
  18.  
  19. encoders:
  20. SymfonyComponentSecurityCoreUserUser: plaintext
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement