I'm using FOSuserbundle with LexikJWTAuthenticationBundle to handle user authentification and registration for my users with symfony API. I have a client application with Angular which sent http request to log in users which works fine but registration does not and i don't know what configuration i should use. My security.yml for login is :
login:
pattern: ^/login
stateless: true
anonymous: true
provider : fos_userbundle
form_login:
check_path: /login_check
username_parameter: _username
password_parameter : _password
success_handler: lexik_jwt_authentication.handler.authentication_success
failure_handler: lexik_jwt_authentication.handler.authentication_failure
require_previous_session: false
To login from the client i use this :
return this.http.post('http://localhost:8000/login_check', body.toString(), {headers: headers})
But i couldn't find any configuration such that of login in the fosbundle documentation.
PS : registration with FOSbundle forms directly from backend works.