Hey Luc and Everyone, I think part of the problem you guys were having was that your login path was locked out. Use security:false or IS_AUTHENTICATED_ANONYMOUSLY like in luc's example.
FYI as well, I am running off a sandbox and was able to get it working. Went through most of the problems you guys had, but the documentation is improving (make sure to read it *all*, there are no *small* details. Roger On Mar 9, 9:05 am, Luc Vandesype <luc.vandes...@gmail.com> wrote: > here mine, worked! > > security: > encoders: > Bundles\AdminBundle\Entity\AdminUser: plaintext > > providers: > main: > entity: { class: AdminBundle:AdminUser, property: username } > > firewalls: > backend: > pattern: /admin.* > form_login: > check_path: /admin/login-check > login_path: /admin/login > remember_me: false > post_only: true > default_target_path: /admin/ > logout: { path: /admin/logout, target: /admin/login } > > frontend: > pattern: /.* > security: false > > access_control: > - { path: /admin/login.*, role: IS_AUTHENTICATED_ANONYMOUSLY } > - { path: /admin.*, role: ROLE_ADMIN } > - { path: /.*, role: IS_AUTHENTICATED_ANONYMOUSLY } > > 2011/3/9 Philip Cole <phi...@pcole.me> > > > > > Hi Florian, > > > Thanks for your help. I tried this and it doesn't work either. > > I have no idea what is wrong and I think the latest docs (even on > > github) > > may be out of synch or something is broken. Although I do not rule out > > that it could be my fault.S > > Does somebody have form based user login working (without the FOS > > UserBundle) with the latest Symfony code (from the master branch on > > github)? > > > Thanks, > > > Philip > > > On Mar 9, 7:03 am, Florian Semm <florian.s...@gmx.de> wrote: > > > Am 08.03.2011 15:56, schrieb Donald: > > > > > OK, I modified the security.yml file as follows: > > > > > # app/config/security.yml > > > > security: > > > > access_denied_url: /error403 > > > > > providers: > > > > entity: > > > > entity: { class: UserBundle:User, property: username } > > > > > firewalls: > > > > main: > > > > form_login: > > > > check_path: /login_check > > > > login_path: /login > > > > failure_path: /login > > > > logout: true > > > > > And I still get the following error after submitting the login form: > > > > > Unable to find the controller for path "/login_check". Maybe you > > > > forgot to add the matching route in your routing configuration? > > > > > On Mar 7, 2:27 pm, Christophe COEVOET<s...@notk.org> wrote: > > > >> Le 07/03/2011 21:24, Donald a crit :> Christophe, > > > > >>> Thanks for the response. > > > >>> I'm aware that there are certain features missing from my example > > > >>> above. But I'm trying to keep this test case very limited so I can > > > >>> concentrate on the problem at hand; being that the check > > > >>> authentication is not working. > > > >> Sure, but your issue can be this: when the authentication fails, the > > > >> request is not redirected so you need to have a controller. Thus it > > > >> would display the authentication error (which also appear in the logs > > if > > > >> you log debug messages) > > > > >> -- > > > >> Christophe | Stof > > > > hi, > > > > i think something is missing in your config. add > > > "anonymous: true" and "pattern: .*" > > > to your config. it looks like this: > > > > security: > > > access_denied_url: /error403 > > > > providers: > > > entity: > > > entity: { class: UserBundle:User, property: username } > > > > firewalls: > > > main: > > > pattern: .* > > > form_login: > > > check_path: /login_check > > > login_path: /login > > > failure_path: /login > > > logout: true > > > anonymous: true > > > > FS > > > -- > > 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 > > -- > Luc Vandesype -http://www.neoplug.com -- 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