Ok, I have set this now:

security.config:
    encoders:
       Symfony\Component\Security\Core\User\User:
         algorithm: plaintext

    providers:
        main:
            users:
                foo: { password: foo }

    firewalls:
        main:
            http-basic: true

and it works. Thank you.

> The exception message just tells you the issue: you have to define the
> encoder for the User class used by the InMemoryProvider, which is not
> "HelloBundle/Entity/User" but "Symfony\Component\Security\Core\User\User"
> as stated in the exception message.
> The doc about encoders is here:
> http://docs.symfony-reloaded.org/master/guides/security/users.html#configuring-encoders.
>
> Regards
>
> --
> Christophe | Stof
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to