security: password_hashers: Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto' providers: app_user_provider: entity: class: App\Entity\Employee property: loginEmail firewalls: dev: pattern: ^/(_profiler|_wdt|assets|build)/ security: false # Öffentlicher Login-Endpunkt: tauscht E-Mail/Passwort gegen ein JWT login: pattern: ^/api/login$ stateless: true json_login: check_path: /api/login username_path: email password_path: password success_handler: lexik_jwt_authentication.handler.authentication_success failure_handler: lexik_jwt_authentication.handler.authentication_failure # Geschützte API: JWT im Authorization-Header api: pattern: ^/api stateless: true provider: app_user_provider jwt: ~ main: lazy: true provider: app_user_provider access_control: - { path: ^/api/login, roles: PUBLIC_ACCESS } - { path: ^/api/docs, roles: PUBLIC_ACCESS } - { path: ^/api/branding, roles: PUBLIC_ACCESS } - { path: ^/api, roles: IS_AUTHENTICATED_FULLY } role_hierarchy: ROLE_PLATFORM_ADMIN: [ROLE_RESELLER_ADMIN, ROLE_COMPANY_ADMIN, ROLE_EMPLOYEE, ROLE_CONTACT] ROLE_RESELLER_ADMIN: [ROLE_COMPANY_ADMIN, ROLE_EMPLOYEE, ROLE_CONTACT] ROLE_COMPANY_ADMIN: [ROLE_EMPLOYEE, ROLE_CONTACT] ROLE_EMPLOYEE: [ROLE_CONTACT] when@test: security: password_hashers: Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: algorithm: auto cost: 4 time_cost: 3 memory_cost: 10