Latest checkpoint, security.yml: security: encoders: Symfony\Component\Security\Core\User\User: plaintext
providers: in_memory: users: sas: { password: bb87a29949f3a1ee0559f8a57357487151281386, roles: 'ROLE_USER' } admin: { password: 74913f5cd5f61ec0bcfdb775414c2fb3d161b620, roles: 'ROLE_ADMIN' } access_control: - { path: ^/, roles: ROLE_ADMIN } factories: UrlSecurityFactory: %kernel.root_dir%/../src/MyBundle/ Resources/config/security_factories.xml firewalls: profiler: pattern: ^/_profiler security: false wdt: pattern: ^/_wdt security: false notauth: pattern: ^/not-auth security: false auth: pattern: ^/auth/customer security: false secured_area: pattern: ^/ security: true url_login: login_path: /not-auth check_path: /auth/customer config.yml: security.authentication.listener.url: class: MyBundle\Security\Http\Firewall \UrlAuthenticationListener arguments: [@security.context, @security.authentication.manager, @security.authentication.session_strategy, ''] Error: Uncaught exception 'OutOfBoundsException' with message 'The index "4" is not in the range [0, 3]. On May 26, 2:03 pm, umpirsky <umpir...@gmail.com> wrote: > Now I'm getting > > 'LogicException' with message 'No authentication listener registered > for pattern "^/". > > and it looks like I'm not > alonehttp://forum.symfony-project.org/viewtopic.php?f=23&t=35423 > > On May 26, 11:58 am, umpirsky <umpir...@gmail.com> wrote: > > > > > > > > > I managed to implement my own factory class UrlLoginFactory extends > > AbstractFactory defined in my security_factories.xml and tell Symfony > > to use it. I also know that I should implement my > > AbstractAuthenticationListener, but I don't see the way to tell > > Symfony to use my listener. > > > Config just let you enable custom > > factorieshttp://symfony.com/doc/current/reference/configuration/security.html, > > but listeners are defined in separate config file. So, I don't know > > how to force it to use my custom listener. > > > Any idea? > > > On May 25, 7:36 pm, umpirsky <umpir...@gmail.com> wrote: > > > > Thank you for your answer, really appriciate it. > > > > So, I was going the wrong way. I have implemented > > > UserProviderInterface, which is, now I see only used to retreive > > > available users. > > > > If you can tell me what interface should I nimplement and how to > > > enable it via security.yml config, that would help. > > > > It looks like I need to implement UserAuthenticationProvider > > > implements AuthenticationProviderInterface but I'm not sure. Not sure > > > how to enable it either. > > > > On May 25, 2:32 pm, Christophe COEVOET <s...@notk.org> wrote: > > > > > Le 25/05/2011 14:25, umpirsky a crit :> I want to implement simple user > > > > authorization via hash url. I see > > > > > there is support for in memmory auth, simple HTTP auth and login form. > > > > > > Is there any way to implement custom authorization, in my case via > > > > > hash url? Ofc, I will implement auth algorithm, but I want Symfony to > > > > > handle the rest: session management... > > > > > The Security component is fully extendable. You can add new security > > > > listeners to add new authentication methods. But it is not the basic way > > > > so it will require some work. and it is not documented yet. > > > > > -- > > > > 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