Lexikjwtauthenticationbundle: Symfony 4 Documentation

Created on 12 Jan 2018  路  4Comments  路  Source: lexik/LexikJWTAuthenticationBundle

I have some problems with JWT Token integration in Symfony 4. Your documentation is available for Symfony 3.2 or less. Can you update with Symfony 4 integration please? 馃槂

Most helpful comment

Sure, it needs some updates. Could you detail the problems you face and how you solved them if you did? That would help for sure. Thanks.

All 4 comments

Sure, it needs some updates. Could you detail the problems you face and how you solved them if you did? That would help for sure. Thanks.

Thanks for your response.

Several problems due to the configuration:

  • LexikJWTAuthenticationBundle not found
  • route 'api_login_check' not found
  • route '/api/login_check' -> return 404 error

I think it's a wrong configuration in my project, but I don't know...

Here is a working example under symfony flex: https://github.com/chalasr/lexik-jwt-authentication-sandbox/tree/flex.
Feedback welcomed, I'll soon take time to update the bundle documentation accordingly.

FYI: I've been able to get up-and-running in a local Symfony 4 dev environment, by following the installation instructions as-is.

The only thing I did differently is fix the config path for the key file. See changes in this PR:
https://github.com/lexik/LexikJWTAuthenticationBundle/pull/490

Was this page helpful?
0 / 5 - 0 ratings