Skip to content

Instantly share code, notes, and snippets.

@DylanDelobel
Created February 7, 2019 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DylanDelobel/1e8cd03d5d282e88b9e8babcad303647 to your computer and use it in GitHub Desktop.
Save DylanDelobel/1e8cd03d5d282e88b9e8babcad303647 to your computer and use it in GitHub Desktop.
security easy
security:
encoders:
Symfony\Component\Security\Core\User\User:
algorithm: bcrypt
cost: 12
providers:
in_memory:
memory:
users:
admin:
password: $2y$12$8UuQwSqfhQc1kILY1sOwTRudfmPbz2MJbRMyxffefSriz/YJ1oMf/zde
roles: 'ROLE_ADMIN'
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: true
http_basic: ~
access_control:
- { path: ^/admin, roles: ROLE_ADMIN }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment