From 17a96f43dbc9035c9fa8ee267c1fd2a3a8683fe0 Mon Sep 17 00:00:00 2001 From: Wouter de Jong Date: Fri, 7 May 2021 17:36:48 +0200 Subject: [PATCH] [SecurityBundle 5.3] Enable authenticator security by default --- .../5.3/config/packages/security.yaml | 25 +++++++++++++++++++ symfony/security-bundle/5.3/manifest.json | 9 +++++++ 2 files changed, 34 insertions(+) create mode 100644 symfony/security-bundle/5.3/config/packages/security.yaml create mode 100644 symfony/security-bundle/5.3/manifest.json diff --git a/symfony/security-bundle/5.3/config/packages/security.yaml b/symfony/security-bundle/5.3/config/packages/security.yaml new file mode 100644 index 00000000..030c4de1 --- /dev/null +++ b/symfony/security-bundle/5.3/config/packages/security.yaml @@ -0,0 +1,25 @@ +security: + # https://symfony.com/doc/current/security/experimental_authenticators.html + enable_authenticator_manager: true + # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers + providers: + users_in_memory: { memory: null } + firewalls: + dev: + pattern: ^/(_(profiler|wdt)|css|images|js)/ + security: false + main: + lazy: true + provider: users_in_memory + + # activate different ways to authenticate + # https://symfony.com/doc/current/security.html#firewalls-authentication + + # https://symfony.com/doc/current/security/impersonating_user.html + # switch_user: true + + # Easy way to control access for large sections of your site + # Note: Only the *first* access control that matches will be used + access_control: + # - { path: ^/admin, roles: ROLE_ADMIN } + # - { path: ^/profile, roles: ROLE_USER } diff --git a/symfony/security-bundle/5.3/manifest.json b/symfony/security-bundle/5.3/manifest.json new file mode 100644 index 00000000..5d8527e4 --- /dev/null +++ b/symfony/security-bundle/5.3/manifest.json @@ -0,0 +1,9 @@ +{ + "bundles": { + "Symfony\\Bundle\\SecurityBundle\\SecurityBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "aliases": ["security"] +}