feat: minimal locally stored user entity

This commit is contained in:
Björn Fromme
2025-04-24 17:09:05 +02:00
parent 53884e4e12
commit c418ae6399
14 changed files with 217 additions and 200 deletions
+6 -4
View File
@@ -4,8 +4,10 @@ security:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
# https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider
providers:
bpn_user_provider:
id: App\BusProNet\Security\UserProvider
app_user_provider:
entity:
class: App\Entity\User
property: email
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
@@ -18,9 +20,9 @@ security:
- App\Security\ApiKeyAuthenticator
main:
lazy: true
provider: bpn_user_provider
provider: app_user_provider
custom_authenticator:
App\BusProNet\Security\Authenticator
App\Security\BpnAuthenticator
logout:
path: app_logout
target: app_login