Commit 7215927d authored by Mat's avatar Mat

sécurité user, mise en place basique (plaintext, user et role en dur)

parent 6c516fed
......@@ -2,11 +2,6 @@
# https://symfony.com/doc/current/security.html
security:
# https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
providers:
in_memory:
memory: ~
firewalls:
# disables authentication for assets and the profiler, adapt it according to your needs
dev:
......@@ -18,7 +13,26 @@ security:
# activate different ways to authenticate
# https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
#http_basic: ~
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