Re: [symfony-users] Re: Symfony2 authentication with User Entity

2011-04-08 Thread Alvaro Touzon
Yes, My security, is : security: encoders: #Symfony\Component\Security\Core\User\User: plaintext Infocasas\PublicBundle\Entity\SwapUser: algorithm: md5 encode-as-base64: true iterations: 10 role_hierarchy: ROLE_ADMIN: ROLE_USER

Re: [symfony-users] Re: Symfony2 authentication with User Entity

2011-04-08 Thread Gustavo Adrian
Can you show us your security config? and try tu var_dump what entity is your provider returning 2011/4/8 kassel > Hi Gustavo. > I've use the ROLE_ADMON as default value for it > code from Entity: > public function getRoles(){ >return array("ROLE_USER"); >} > > And nothing the same p

Re: [symfony-users] Re: Symfony2 authentication with User Entity

2011-04-08 Thread Gustavo Adrian
One thing I've noticed. Your role is ADMON. If your roles are defined as strings, they should have the "ROLE_" prefix as stated here: http://symfony.com/doc/2.0/book/security/users.html#roles So your role should be ROLE_ADMON 2011/4/8 k