The LexikJWTAuthenticationBundle provides authentication via Json Web Token for Symfony2+ REST API .
Questions tagged [lexikjwtauthbundle]
221 questions
0
votes
0 answers
LexikJWTAuthenticationBundle not authenticating and redirecting to login
I'm not sure if its my firewall setting or private keys, it was working then I deleted the directory and cloned from master had to copy my var/jwt directory directly over I think i forgot to commit it or something but now I can get a token
curl…

user1930591
- 307
- 5
- 22
0
votes
2 answers
Add additional validation for logins using LexikJWTAuthenticationBundle
I want to add additional validation to allow the login, ie, not just check that the username and password match but do other validations on the user before allowing him to login.
I tried extending JWTTokenAuthenticator but it seems none of its…

Esteban Filardi
- 726
- 3
- 16
- 30
0
votes
1 answer
Symfony LexikJWTAuthenticationBundle Unable to authenticate
I'm encountering an issue with the JWT Auth bundle on Symfony 3. I've followed instructions from their github README but just can't seem to figure out where I've gone wrong or what is going wrong.
I am using Symfony 3.1.1, With…

Greg
- 113
- 1
- 14
0
votes
0 answers
Symfony 3 api authentication with Ldaptools Jwt and FosUserBundle
I'm trying to auth API and BackOffice users of a Symfony 3 app whith a combination of 3 bundles : LdaptoolsBundle, LexikJwtAuthBundle and fosUserBundle.
Here is my configuration:
config.yml
//config.yml
lexik_jwt_authentication:
…

user3282502
- 13
- 1
- 5
0
votes
1 answer
Symfony does not read phpsessid right
Can someone tell me why symfony is not reading the right PHPSESSID but rather read some of it (example below), I'm using LEXIK for authentication and FOSRestBundle for API. Below is the security configuration (I think this is it). Which is causing…

user26776
- 131
- 3
- 12
0
votes
0 answers
LexikJWT let native Angular app to access data. How to?
I have symfony3 based api and on frontend Angular2 which uses LexikJWTAuthenticationBundle for Authentication. So my api is guarded by LexikJWT all endpoints. But my application should access without authentication endpoints to render data for…

fefe
- 8,755
- 27
- 104
- 180
0
votes
1 answer
lexik jwt always returns bad cerdentials without creating a token
I just started using lexik-jwt ! and the problem is that after running the cmd :curl -X POST http://localhost:8000/api/login_check -d _username=johndoe -d _password=test i always get this response {"code":401,"message":"Bad credentials"}

Khaled Bouguerra
- 13
- 1
- 4
0
votes
1 answer
Symfony2 LexikJWTAuthenticationBundle not working past login_check
I am trying to set up LexikJWTAuthenticationBundle (Symfony 3) for the first time.
Everything worked smoothly until I tried to make a GET request to an url that was restricted by ROLE_USER.
I can make a POST request to the login_check url, which…
-1
votes
1 answer
Symfony Lexik Authentication with Phone Number
I'm currently working on a Symfony project where I need to implement registration using email/password or only a phone number and OTP without any password. I'm using the Lexik bundle for authentication, but I'm facing some challenges since Lexik…

YOUSSEF
- 41
- 4
-1
votes
1 answer
Symfony 5 login form with JWT authentication
Symfony 5 login form with JWT authentication
Hello,
How can I implement Symfony 5 login form with JWT authentication please?
Thanks in advance
-1
votes
1 answer
How to enable authorize in Swagger.?
In my project, the api_platform.yaml file is created in the routes folder, not in the packages folder. I can't make changes to api_platform.yaml.
I moved api_platform.yaml file from routes folder to packages folder swagger didn't work.
I tried…
-1
votes
1 answer
Access Denied Error Symfony with custom roles
Good morning, I am configuring my symfony 5.4 api and I am having problems with the is_granted function of symfony. My connected user has all the roles in the token (classic roles + custom roles).
Custom roles are linked to the company and each user…

oracle972
- 77
- 10
-1
votes
2 answers
Symfony rest api error with security.yaml
I'm trying to add an auth system with JWT to my REST API but since I added my system and modified my security.yaml I have those errors:

DylanAumond
- 1
- 1
-1
votes
1 answer
Intercept the login_check path from symfony 4.4
I have a REST API made with symfony 4.4 and I am having problems in the authentication process.
Everything works fine, but I am experiencing that sometimes the login_check returns 401 Unauthorized with users who days ago could access without…

Conde
- 785
- 15
- 31
-1
votes
1 answer
symfony: granted access to everyone only to GET method in access_control on API but still get 401 unauthorised if user do not have a token
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.
I have…

Alex
- 1,230
- 2
- 24
- 46