02.05.2018 - With a code like this, the Security Layer should intercept the request an. -jwt-authentication-sandbox/blob/flex/config/packages/security.yaml. You need to write either your own success/failure handlers or a controller for your login route Yup, if anything goes wrong, Symfony sends response via JSON..