aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarwolaethblack <a.unal677@gmail.com>2017-11-22 12:37:48 +0100
committermarwolaethblack <a.unal677@gmail.com>2017-11-22 12:37:48 +0100
commit4312b353dbb4b448d551975b63db9c95b3eef4f5 (patch)
tree90c991bc462526725593f82e56b288cfce2c7e03 /app/config/security.yml
initial commit
Diffstat (limited to 'app/config/security.yml')
-rw-r--r--app/config/security.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/app/config/security.yml b/app/config/security.yml
new file mode 100644
index 0000000..0e0b7cb
--- /dev/null
+++ b/app/config/security.yml
@@ -0,0 +1,24 @@
+# To get started with security, check out the documentation:
+# 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:
+ 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: ~