Skip to content
Advertisement

Symfony 4 – JWT not found with LexikJWTAuthenticationBundle

Good afternoon,

I try to use LexikJWTAuthenticationBundle in my project and I have a problem with the token which is not generated. I have set the private & public keys in var/jwt directory.

The API returns this response when I try use the login route :

JavaScript

Apache Virtualhost :

JavaScript

.htaccess file in public directory:

JavaScript

security.yaml security:

JavaScript

I expect to successfully use the login route and generate a valid token on the others routes.

Advertisement

Answer

Thank you for your help.

I have discover a problem about this upgrade, but I have a solution.

In lexik_jwt_authentication.yaml file :

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement