Hello all,
Exactly what initiates a login procedure in symfony2? It seems to me that
there's a lot of magic stuff that's supposed to happen and symfony2 itself
would handle most of the validation, but what triggers this process?
I have been trying to create a database entity based authentication system
for the past four hours and there's something I just simply cannot
understand. The master documentation tells me to create routes
"security_login" and "security_check" - ok fine. The first goes to
AccountBundle:default:login and I have copied the sample login form script
from the master docs there. The documentation suggests that I only specify
the pattern "/login_check" for the security_check route and not specify a
default controller at all. Well how is it supposed to know what to do when
that route is activated?
Is symfony2 supposed to catch all form submits that go to /login_check
relying on its internal magic? It results in an undefined controller
exception for me, which sounds logical to me but obviously that does not
help anybody authenticate. So what exactly is it that triggers the login
procedure? I've tried to implement all the AccountInterface and UserProvider
classes too but it seems none of this stuff ever gets processed.
# Application/AccountBundle/config/routing.yml
security_login:
pattern: /login
defaults: { _controller: AccountBundle:Default:login }
security_check:
pattern: /login_check
# app/config/config.yml
security.config:
encoders:
AccountBundle\Entity\Account: md5
providers:
main:
entity: { class: AccountBundle:Account }
firewalls:
public:
pattern: /.*
security: false
Thanks a lot in advance!
--
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 [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-users?hl=en