Is it possible to login by sending GET/POST request? I'm trying to login from mobile app. So I want to somehow post username and password to php.
This is how I have it right now: http://symfony.com/doc/current/security/form_login_setup.html
EDIT:
I tought this could help, but it is logging in without password or with wrong password, so I think it's not what I need?
$token = new UsernamePasswordToken($user, 'password', 'main', $user->getRoles());
$this->get('security.token_storage')->setToken($token);
Thanks