feat(Prestaire.php): Implémente UserInterface et PasswordAuthenticatedUserInterface.

 feat(security): Ajoute firewall et authentificateur pour ETL.

 feat(EtlController.php): Ajoute contrôleur et routes pour ETL.

 feat(RedirecListener.php): Ajoute redirection pour etl.ludikevent.fr.

✏️ chore(caddy): Ajoute etl.ludikevent.fr à la configuration Caddy.
```
This commit is contained in:
Serreau Jovann
2026-01-29 17:32:03 +01:00
parent 0be11d03f1
commit dbd806a595
7 changed files with 266 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ security:
password_hashers:
App\Entity\Account: 'auto'
App\Entity\Customer: 'auto'
App\Entity\Prestaire: 'auto'
providers:
app_account_provider:
@@ -12,12 +13,33 @@ security:
entity:
class: App\Entity\Customer
property: email
etl_account_provider: # Provider spécifique Customer
entity:
class: App\Entity\Prestaire
property: email
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
etl:
pattern: ^/(etl)
lazy: true
provider: etl_account_provider # Force l'entité Account (Admin) ici
user_checker: App\Security\UserChecker
entry_point: App\Security\EtlAuthenticator
form_login:
login_path: etl_home
check_path: etl_home
enable_csrf: true
csrf_token_id: authenticate
custom_authenticator:
- App\Security\EtlAuthenticator
logout:
path: elt_logout
target: elt_home
intranet: