{"action":"opened","issue":{"url":"https://api.github.com/repos/lexik/LexikJWTAuthenticationBundle/issues/603","repository_url":"https://api.github.com/repos/lexik/LexikJWTAuthenticationBundle","labels_url":"https://api.github.com/repos/lexik/LexikJWTAuthenticationBundle/issues/603/labels{/name}","comments_url":"https://api.github.com/repos/lexik/LexikJWTAuthenticationBundle/issues/603/comments","events_url":"https://api.github.com/repos/lexik/LexikJWTAuthenticationBundle/issues/603/events","html_url":"https://github.com/lexik/LexikJWTAuthenticationBundle/issues/603","id":395667187,"node_id":"MDU6SXNzdWUzOTU2NjcxODc=","number":603,"title":"Unable to find _controller","user":{"login":"adrienlefebvre92","id":40758111,"node_id":"MDQ6VXNlcjQwNzU4MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/40758111?v=4","gravatar_id":"","url":"https://api.github.com/users/adrienlefebvre92","html_url":"https://github.com/adrienlefebvre92","followers_url":"https://api.github.com/users/adrienlefebvre92/followers","following_url":"https://api.github.com/users/adrienlefebvre92/following{/other_user}","gists_url":"https://api.github.com/users/adrienlefebvre92/gists{/gist_id}","starred_url":"https://api.github.com/users/adrienlefebvre92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrienlefebvre92/subscriptions","organizations_url":"https://api.github.com/users/adrienlefebvre92/orgs","repos_url":"https://api.github.com/users/adrienlefebvre92/repos","events_url":"https://api.github.com/users/adrienlefebvre92/events{/privacy}","received_events_url":"https://api.github.com/users/adrienlefebvre92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-03T17:51:42Z","updated_at":"2019-01-03T17:51:42Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI followed the Sf4 sandbox to install JWT Auth, but still I have this response :\r\n\r\n> 2019-01-03T18:39:27+01:00 [info] Matched route \"login_check\".\r\n2019-01-03T18:39:27+01:00 [info] Populated the TokenStorage with an anonymous Token.\r\n2019-01-03T18:39:27+01:00 [warning] Unable to look for the controller as the \"_controller\" parameter is missing.\r\n2019-01-03T18:39:27+01:00 [critical] Uncaught Exception: Unable to find the controller for path \"/login_check\". The route is wrongly configured.\r\n[Thu Jan  3 18:39:27 2019] 127.0.0.1:48564 [404]: /login_check\r\n\r\nWhen I try this command : \r\n\r\n> curl -X POST -H \"Content-Type: application/json\" http://localhost:8000/login_check -d '{\"email\":\"johndoe@test.fr\",\"password\":\"test\"}'\r\n\r\nHere is my routes.yaml : \r\n\r\n```\r\nindex:\r\n    path: /\r\n    controller: App\\Controller\\DefaultController::index\r\n\r\nregister:\r\n    path: /register\r\n    controller: App\\Controller\\DefaultController::register\r\n    methods: POST\r\n\r\napi:\r\n    path: /api\r\n    controller: App\\Controller\\DefaultController::api\r\n\r\nlogin_check:\r\n    path:     /login_check\r\n    methods:  [POST]\r\n\r\n```\r\n\r\nAnd here is my security.yaml : \r\n```\r\n\r\nsecurity:\r\n    encoders:\r\n        App\\Entity\\User:\r\n            algorithm: bcrypt\r\n            cost: 12\r\n\r\n    # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers\r\n    providers:\r\n        # used to reload user from session & other features (e.g. switch_user)\r\n        app_user_provider:\r\n            entity:\r\n                class: App\\Entity\\User\r\n                property: email\r\n    firewalls:\r\n        dev:\r\n            pattern: ^/(_(profiler|wdt)|css|images|js)/\r\n            security: false\r\n\r\n        main:\r\n            anonymous: true\r\n\r\n        login:\r\n            pattern:  ^/login\r\n            stateless: true\r\n            anonymous: true\r\n            json_login:\r\n                check_path:               /login_check\r\n                success_handler:          lexik_jwt_authentication.handler.authentication_success\r\n                failure_handler:          lexik_jwt_authentication.handler.authentication_failure\r\n                username_path: email\r\n                password_path: password\r\n        api:\r\n            pattern:   ^/\r\n            stateless: true\r\n            guard:\r\n                authenticators:\r\n                    - lexik_jwt_authentication.jwt_token_authenticator\r\n\r\n    # Easy way to control access for large sections of your site\r\n    # Note: Only the *first* access control that matches will be used\r\n    access_control:\r\n        # - { path: ^/admin, roles: ROLE_ADMIN }\r\n        # - { path: ^/profile, roles: ROLE_USER }\r\n```\r\n\r\nI am using PHP7.2 and Symfony 4.2.\r\nDoes someone know how to correct this error ?\r\n\r\nThanks,\r\n\r\nAdrien"}}
{"actor":{"display_login":"adrienlefebvre92"}}