Vui

Results 103 comments of Vui

Not sure if it is relevant or not but can you try place the code at the end of the `services` in `services.yaml`? For example: ``` services: #.... app.custom_authenticator: class:...

> Hi, I've tried what you say too and I get the same result, my custom class doesn't take it. debugging and using the dump function I don't see that...

> In my case, what I want to achieve is a JWT login through email or username. It seems that the LexikJWTAuthentication bundle does not do it by itself and...

> The authenticator actually retrieves the JWT token if it exists in the incoming request, and then retrieves the user from the database from the $payload. > > Now if...

> I also searched in vain how it proceeds to authenticate the default user just in api/login_check in the routes.yaml file > > We are almost in the same need...

> You can try add `dd();` in `JWTAuthenticator::loadUser()` either directly in vendor or fork a version and change it there, mine does nothing there and I'm not really sure if...

> And indeed it is called, but only in the parent class (JWTTokenAuthenticator). The local one(CustomJWTTokenAuthenticator) to override the loadUser method is never called. Mine custom authenticator is working, the...

> can u share your example work, maybe it's configuration issues too. I test it with memory user config. security.yaml ```yaml security: enable_authenticator_manager: true # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords password_hashers: Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto' #...

> > > I also searched in vain how it proceeds to authenticate the default user just in api/login_check in the routes.yaml file > > > We are almost in...

> I think you can use [Custom User Checker](https://symfony.com/doc/current/security/user_checkers.html) for this. > > TTL per user basis indicates that it is a User's property. In this case it can be...