FriendsOfSymfony / FOSOAuthServerBundle

A server side OAuth2 Bundle for Symfony
1.09k stars 451 forks source link

1 passed to Symfony\Component\Security\Core\User\UserChecker::checkPreAuth() must be an instance of Symfony\Component\Security\Core\User\UserInterface, string give #629

Open ghost opened 4 years ago

ghost commented 4 years ago

Hi, i'm on symfony 4.3.3 application and i'm using FosoauthServerBundle with Fosuserbundle. When i'm try to challenge my api on localhost i get this error message : Argument 1 passed to Symfony\\Component\\Security\\Core\\User\\UserChecker::checkPreAuth() must be an instance of Symfony\\Component\\Security\\Core\\User\\UserInterface, string given, called in /var/www/seris-api-extranet/vendor/friendsofsymfony/oauth-server-bundle/Security/Authentication/Provider/OAuthProvider.php on line 76"

into my dev.log file, i have : Argument 1 passed to Symfony\Component\Security\Core\User\UserChecker::checkPreAuth() must be an instance of Symfony\Component\Security\Core\User\UserInterface, string give && User Deprecated: Calling the "FOS\OAuthServerBundle\Security\Firewall\OAuthListener::handle() .....

please help