Category: symfony-security

How to configured multiple user entity with JWT token?

I have multiple user entities (multiple tables): AppEntityCustomer AppEntityDealer How to configured multiple user entity with JWT token? encoders: AppEntityDealer: algorithm: bcrypt AppEntityCustomer: algorithm: bcrypt providers: dealer: entity: class: AppEntityDealer property: username customer: entity: class: AppEntityCustomer property: username Source: Symfony…

Symfony access handling for specific folders dependend on logged in user

In a symfony 5.0 application I need to integrate a filemanager that provides basic file handling for users. Each user is only allowed to manage files in his specific user folder which (obviously) is not in the public folder but…

Symfony Authenticator / Entity listener order

I’m running Symfony 3.4 LTS. I get: a custom Authenticator extending AbstractGuardAuthenticator, use to perform an API call to check if the visitor has credentials. Works perfect. <?php namespace AppBundleSecurity; […] class TokenAuthenticator extends AbstractGuardAuthenticator { public function supports() {…