```
✨ feat(reservation/contrat): Ajoute la gestion complète des contrats
```
This commit is contained in:
@@ -4,7 +4,13 @@ security:
|
||||
entity:
|
||||
class: App\Entity\Account
|
||||
property: email
|
||||
|
||||
reserve_account:
|
||||
entity:
|
||||
class: App\Entity\Customer
|
||||
property: email
|
||||
all_users:
|
||||
chain:
|
||||
providers: [app_account_provider, reserve_account]
|
||||
firewalls:
|
||||
dev:
|
||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||
@@ -12,7 +18,7 @@ security:
|
||||
|
||||
main:
|
||||
lazy: true
|
||||
provider: app_account_provider
|
||||
provider: all_users
|
||||
user_checker: App\Security\UserChecker
|
||||
|
||||
# --- AJOUT DE LA CONFIGURATION 2FA ---
|
||||
@@ -31,6 +37,7 @@ security:
|
||||
entry_point: App\Security\AuthenticationEntryPoint
|
||||
|
||||
custom_authenticator:
|
||||
- App\Security\CustomerAuthenticator
|
||||
- App\Security\LoginFormAuthenticator
|
||||
- App\Security\KeycloakAuthenticator
|
||||
|
||||
@@ -40,15 +47,16 @@ security:
|
||||
|
||||
password_hashers:
|
||||
App\Entity\Account: 'auto'
|
||||
App\Entity\Customer: 'auto'
|
||||
|
||||
role_hierarchy:
|
||||
ROLE_ROOT: [ROLE_ADMIN,ROLE_CLIENT_MAIN]
|
||||
ROLE_CLIENT_MAIN: [ROLE_ADMIN]
|
||||
ROLE_ROOT: [ROLE_ADMIN,ROLE_CLIENT_MAIN,ROLE_CUSTOMER]
|
||||
ROLE_CLIENT_MAIN: [ROLE_ADMIN,ROLE_CUSTOMER]
|
||||
|
||||
|
||||
access_control:
|
||||
# Permettre l'accès aux pages 2FA même si on n'est pas encore pleinement "ROLE_ADMIN"
|
||||
- { path: ^/2fa, roles: PUBLIC_ACCESS }
|
||||
|
||||
- { path: ^/gestion-contrat, roles: [ROLE_CUSTOMER] }
|
||||
- { path: ^/crm, roles: [ROLE_ADMIN] }
|
||||
- { path: ^/, roles: PUBLIC_ACCESS }
|
||||
|
||||
Reference in New Issue
Block a user