Ruudk,

Using FOS\UserBundle as an example, you can likely have /login_check point
to the same controller as /login (assuming that's what renders your login
form). All of the "form" processing is handled internally by the listener,
as it reads request parameters (only from POST by default).

Keep in mind that the URL options for the form and logout listener aren't
regex patterns, but plain strings[1].  Also, I don't think you need a
separate firewall for "/login". If anything, try allowing unauthenticated
access to those paths using access_control and anonymous users.

[1]
https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AbstractFactory.php

On Wed, Mar 30, 2011 at 5:49 AM, Ruudk <[email protected]> wrote:

> Thanks Christophe,
>
> I added the controller for _security_check. Now it submits to that page.
> The problem is that Symfony doesn't call my custom provider to authenticate
> the user.
>
> I've created a gist with my files https://gist.github.com/894138. As you
> can see I've created a custom SubdomainProvider to authenticate users on the
> current subdomain. The loadUserByUsername and loadUser are never called.
>
> Hopefully someone can help me out.
>
> --
> 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 developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
>



-- 
jeremy mikola

-- 
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 developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to