diff app/config/security.yml.http-dml.dist @ 0:493bcb69166c

added public content
author Daniel Wolff
date Tue, 09 Feb 2016 20:54:02 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/config/security.yml.http-dml.dist	Tue Feb 09 20:54:02 2016 +0100
@@ -0,0 +1,20 @@
+security:
+    firewalls:
+        secured_area:
+            pattern:   ^/
+            anonymous: false
+            http_basic:
+                realm: "Please enter login and password that were sent you via email"
+  
+    access_control: 
+        - { path: ^/, roles: ROLE_USER }
+          # Include the following line to also secure the /admin path itself
+          # - { path: ^/admin$, roles: ROLE_ADMIN }
+  
+    providers:
+        in_memory:
+            memory:
+                users:
+                    dml:  { password: dev, roles: 'ROLE_USER' }
+    encoders:
+        Symfony\Component\Security\Core\User\User: plaintext