Commit 9d81d8a9 authored by Mat's avatar Mat

vide le fichier sécurité, qui sera réécrit différemment

parent dee719dc
# To get started with security, check out the documentation:
# https://symfony.com/doc/current/security.html
security:
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: ~
# activate different ways to authenticate
# https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
http_basic: ~
# https://symfony.com/doc/current/security/form_login_setup.html
#form_login: ~
access_control:
- { path: ^/admin, roles: ROLE_ADMIN }
- { path: ^/techno/hello, roles: ROLE_USER }
# https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
providers:
in_memory:
memory:
users:
mat:
password: 1234
roles: [ ROLE_USER ]
admin:
password: 5678
roles: [ ROLE_ADMIN ]
encoders:
Symfony\Component\Security\Core\User\User: plaintext
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment