The LexikJWTAuthenticationBundle provides authentication via Json Web Token for Symfony2+ REST API .
Questions tagged [lexikjwtauthbundle]
221 questions
0
votes
1 answer
I can't get the user from JWT
I have a project with Symfony 5.1 using Lexik JWT v2.8.0, gesdinet jwt refresh token v0.9.1 and my own entity user. I can log in with JWT and get the token, save it in a HttpOnly cookie and use it with the protected APIs successfully.
My web app has…

Alex
- 1,230
- 2
- 24
- 46
0
votes
1 answer
Symfony deploy google cloud
I am deploying symfony app to google cloud, I did this (https://cloud.google.com/community/tutorials/run-symfony-on-appengine-standard) tutorial followed and everythings is ok.
I am using LexikJWTAuthenticationBundle for authentication but I cannot…

kemal
- 371
- 2
- 4
- 14
0
votes
0 answers
Implementation of Oauth in symfony 4 alongside with Rest api (ionic mobil app)
I'm working on a project based on symfony 4, having two sides:
1/ The back office side that used to populating and managing data needed in the mobile app for example :
the mobile app shows Quizzes already entered from the back office (to database),…

krachleur
- 356
- 3
- 14
0
votes
1 answer
Symfony Listener gone missing after minor changes in Controller
I am encountering some weir behaviour with Symfony listener. I have a working configuration, but when I change or add something to the controller, Expected to find class "App\EventListener\AuthenticationSuccessListener" shows up. The change could be…

Pavel Šrytr
- 51
- 7
0
votes
0 answers
React Symfony 5.0.7 not seeing JWT in the headers
I am using React 16.13.1 for my login and signup forms with Material-UI, Symfony 5.0.7, Web server is using PHP FPM 7.3.8
When I submit a form, I am not see JWT in the headers:
When I use postman to post to http://localhost:8002/api/login_check, I…

kronus
- 902
- 2
- 16
- 34
0
votes
1 answer
authentication_listener not working when using JWT Authentication bundle
I am integrating lexik/jwtautheticationbundle version 1.3 with symfony 2.8 due to old application changes.
I have managed integrate and generate JWT authorization token but I wanted to use cookie and authentication_listener in lexit_jwt and I used…

Lal Kumar Rai
- 327
- 7
- 21
0
votes
1 answer
lexik JWT error invalid token while decoding token
I've made an authentication system with LexikJWTBundle, below are my security.yml, my service.yml and my config.yml
security:
encoders:
FOS\UserBundle\Model\UserInterface: bcrypt
providers:
fos_userbundle:
id:…

je-buy 01
- 35
- 8
0
votes
2 answers
You must either configure a "public_key" or a "secret_key".[Symfony]
I tried to setup a login authentication using LexikJWTAuthentication, I already generated the necessary keys
Here is how its called
config/packages/lexik_jwt_authentication.yaml
lexik_jwt_authentication:
…

lonestar
- 377
- 1
- 7
- 16
0
votes
2 answers
{"code":401,"message":"Authentication request could not be processed due to a system problem."} - Symfony 5.0 - lexik/jwt-authentication-bundle
I use Synfony 5.0 and "lexik/jwt-authentication-bundle": "^2.6".
displays the following message:
{"code":401,"message":"Authentication request could not be processed due to a system problem."}
This error only occurs with postgres. When I switch to…

Wagner Freitas
- 19
- 5
0
votes
0 answers
add admin path to symfoy back end with React js
I'm currently working on symfony 4 project with React js to handle admin panel .
I used Webpack Encore to connect React JS .
the path of The React JS app is :
my_project_symfony/
And i have an api in :
my_project_symfony/api
The React JS is…

Khaled Boussoffara
- 1,567
- 2
- 25
- 53
0
votes
2 answers
FOSUserBundle keeps saving passwords as plaintext
I have installed FOSUserBundle in a Symfony 3.4 app, with the goal of eventually using it with LexikJWTAuthenticationBundle to create an API. My security.yml file looks like this:
security:
encoders:
FOS\UserBundle\Model\UserInterface:…

Mayor of the Plattenbaus
- 974
- 3
- 34
- 69
0
votes
1 answer
using symfony authenticator with lexik jwt authentication
I'm working on a symfony 4 project :
I created a documented API with API Platform, API expose data to be using from external and now,
I want to add a dashboard for administration.
The API routes are protected with jwt lexik bundle and i generated…

Khaled Boussoffara
- 1,567
- 2
- 25
- 53
0
votes
1 answer
Can't POST or PATCH on server, got 403 forbidden with api-platform
I have an issue since several days.
I'm creating an API with Symfony 5 and Api-platform.
I add a JWT auth with LexikJWTAuthenticationBundle. I have no problem for register, login or GET my entity.
When I start the API on my computer I can POST and…

Arthur Desutter
- 21
- 2
0
votes
1 answer
How to login via username or email using LexikJWT bundle for symfony5?
I am using LexikJWT and GraphQL for my symfony5 API but I don't know how to configure my app to login via username or email.
This is my security.yaml and lexik_jwt_authentication.yaml
// security.yaml
security:
encoders:
…

Filip Kasarda
- 31
- 1
- 4
0
votes
1 answer
Using LexikJWTAuthenticationBundle with an LDAP Provider
I have a project that use Symfony API-Platform. I want to use LexikJWTAuthenticationBundle on my project but my users are stored in an Active Directory so I set an LDAP UserProvider. I tried to combine the setting of the two following…

Pangebo
- 9
- 6