Unable to find the controller for path "/api/login_check". The route is wrongly configured

Viewed 891

I have a problem with "login_check" and i use Symfony 3 and LexikJWTAuthenticationBundle.

The problem :

The route is wrongly configured.

The security.yml :

firewalls:

    login:
        pattern:   ^/api/login
        stateless: true
        anonymous: true
        form_login:
            username_parameter: username
            password_parameter: password
            check_path:               /api/login_check
            success_handler:          lexik_jwt_authentication.handler.authentication_success
            failure_handler:          lexik_jwt_authentication.handler.authentication_failure
            require_previous_session: false
    api:
        pattern: ^/api
        stateless: true
        guard:
            authenticators:
                - lexik_jwt_authentication.jwt_token_authenticator

    main:
        anonymous: true

access_control:
   - {path: ^/api/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
   - {path: ^/api, roles: IS_AUTHENTICATED_FULLY }

The routing.yml :

app:
resource: '@AppBundle/Controller/'
type: rest
prefix: /api

login_check: path: api/login_check

Can you help me, please?

good day :)

1 Answers
Related