This commit is contained in:
2024-07-03 14:03:50 +02:00
parent a2f2520617
commit dad0d86e8c
15 changed files with 377 additions and 4 deletions

View File

@@ -4,14 +4,26 @@ security:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
# https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider
providers:
users_in_memory: { memory: null }
# used to reload user from session & other features (e.g. switch_user)
app_user_provider:
entity:
class: App\Entity\Admin
property: username
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
lazy: true
provider: users_in_memory
provider: app_user_provider
form_login:
login_path: app_login
check_path: app_login
enable_csrf: true
logout:
path: app_logout
# where to redirect after logout
# target: app_any_route
# activate different ways to authenticate
# https://symfony.com/doc/current/security.html#the-firewall
@@ -22,8 +34,8 @@ security:
# 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 }
- { path: ^/admin, roles: ROLE_ADMIN }
# - { path: ^/profile, roles: ROLE_USER }
when@test:
security:

View File

@@ -0,0 +1,3 @@
<?php // dev.AKISMET_KEY.ca01fb on Wed, 03 Jul 2024 11:59:32 +0000
return "\xB98\x05Hk\x3B\xA0\xD6\x02\x7Cj\x9F\xF0\x2Am\xEF\x22\x8F\x29\xF7C\x95\x85\x3B\xE2\xC6\xFC~\x0C\x8D\xDDZ\x9A\xDE\xCF\x86\xF5\xBFZ\xD2\x5C\xC0\x09fK\xD8\xDD\xB3\x8F\x81\x0B\x9D\xFC\x8C\x1BZ\x8F\xB3\x83\x1B";

View File

@@ -0,0 +1,4 @@
<?php // dev.decrypt.private on Wed, 03 Jul 2024 11:59:32 +0000
// SYMFONY_DECRYPTION_SECRET=DvrLXH7erqdZVC2zbEww19XKYO0wZhwhjp0jcHYgouhbYEZHdK9I4Q8GVHLnKKe5YS2dYBHKFniktsfjrKOXcA==
return "\x0E\xFA\xCB\x5C~\xDE\xAE\xA7YT-\xB3lL0\xD7\xD5\xCA\x60\xED0f\x1C\x21\x8E\x9D\x23pv\x20\xA2\xE8\x5B\x60FGt\xAFH\xE1\x0F\x06Tr\xE7\x28\xA7\xB9a-\x9D\x60\x11\xCA\x16x\xA4\xB6\xC7\xE3\xAC\xA3\x97p";

View File

@@ -0,0 +1,3 @@
<?php // dev.encrypt.public on Wed, 03 Jul 2024 11:59:32 +0000
return "\x5B\x60FGt\xAFH\xE1\x0F\x06Tr\xE7\x28\xA7\xB9a-\x9D\x60\x11\xCA\x16x\xA4\xB6\xC7\xE3\xAC\xA3\x97p";

View File

@@ -0,0 +1,5 @@
<?php
return [
'AKISMET_KEY' => null,
];

View File

@@ -0,0 +1,3 @@
<?php // prod.encrypt.public on Wed, 03 Jul 2024 12:03:06 +0000
return "G\x26\xF8\x25\xABd\x84\x3AbWM2\xE9\x0D\x2C\x02\xCA\xD2\xAEV\x82\xA1\x3E\xBF\xC3gv7q\xBAQ.";