EDIT: I already set up login form with symfony and the authorisation works just fine. But would like to go a bit deeper into how it is manage by the security bundle of symfony.
I want to study/understand the way symfony security handles authentification. If I understand well so far the URL "/login_path" as specified in security.yml at the line check_path trigger authentification in Symfony:
Then come controller/listener/service get username and password throught the variable POST["_username"] and POST["_password"] from the login_form.
I wanted to have a look how this is handled in Symfony. Which files should I have a look at in the Security folder in Symfony?
Anyone to just explain me the mecanism about how it works? Does some listener catch the URL then transmit it to some controller in Symfony. (I just want to have a look to understand it)
thanks in advance.
_usernameand_passwordfrom the request object an then use the authentication manager to generate a authentication token. symfony.com/doc/current/components/security/authentication.html - Aitch\Symfony\Component\Security\Http\Firewall\AbstractAuthenticationListenerand its protectedrequiresAuthentication()method uses\Symfony\Component\Security\Http\HttpUtils::checkRequestPathto check ifcheck_pathis in the url. There are two implementations extending it:\Symfony\Component\Security\Http\Firewall\SimpleFormAuthenticationListenerand\Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener- Aitch