Questions tagged [lexikjwtauthbundle]

The LexikJWTAuthenticationBundle provides authentication via Json Web Token for Symfony2+ REST API .

221 questions
0
votes
2 answers

Symfony 3.4 firewall configuration with multiple firewalls and multiple shared guard authenticators

This is a Symfony 3.4 application with a website frontend and a mobile app accessing the same backend. Users can log in by submitting a username and password (form login) authentication with a google account authentication with a facebook…
0
votes
1 answer

Protected my annotations route for LexikJwt

I am trying to implement the LexikJwt package for my new API: https://github.com/lexik/LexikJWTAuthenticationBundle I just added my custom command to create a proper JWT token including my default roles for local testing. The next step would be to…
Dirkos
  • 488
  • 1
  • 10
  • 33
0
votes
1 answer

Add a logout action with symfony 4 and Api platform and use this action with React Native to destroy the token generated by JWT

I use symfony 4 with Api platform and jwt bundle to manage user authentication with token. I want to add a logout action to logout user from the front app and destroy the token and redirect to login screen ( front with React Native). My…
0
votes
1 answer

JWT Authentication in Symfony 4.3 with Guard

I am new to symfony. I am trying to implement JWT authentication using lexik/jwt-authentication-bundle v2.6 and Symfony v4.3 I implemented login successfully, it provides me with jwt token. And accessing restricted areas with JWT token also working…
Nuryagdy Mustapayev
  • 667
  • 1
  • 7
  • 27
0
votes
1 answer

401 Unauthorized : Bad Credentials on /login_check

I am developing an API with Symfony 4.2 and API Platform. I use the Lexik JWT bundle for JWT management. I started by recovering my project thanks to GIT, then I installed the dependencies. I then configured the database (in the .env). I regenerated…
0
votes
1 answer

Unable to authenticate, unauthorized in production

I've build my website with api-platform, lexikJWTauthbundle and react-admin that's work like a charm in local dev, but when I've pushed it in production my admin interface login always return the error "401 bad credential" and the token is never…
onadrog
  • 46
  • 1
  • 4
0
votes
1 answer

Always getting { "code": 401, "message": "Bad credentials" }

i started using the LexikJWTBundle but when i try to create the token it always returns me bad credentials i didn't know where is the problem if it's the password or bad configuration i like done everything but still not working is there any idea of…
AOUADI Slim
  • 299
  • 1
  • 8
  • 27
0
votes
2 answers

401 Bad credentials [lexik/JWTBundle]

I am building an API. When I create a user I receive a token. But when I change the information of my user can not reconnect and I receive the 401 error code with the message Bad credentials. How to solve the problem, please? I use FOSRestBundle,…
0
votes
1 answer

Symfony 4 and LexikJWTAuthenticationBundle what is the storage of tokens?

I am using Symfony 4 with LexikJWTAuthenticationBundle. My app works perfectly fine, but I am wondering where is the storage of tokens of users. For sure they are not stored in database. Now I can use TokenStorageInterface and call…
Martin
  • 1,259
  • 3
  • 17
  • 36
0
votes
1 answer

LexikJWTAuthenticationBundle - How to grant different access to different path's?

I am using LexikJWTAuthenticationBundle to authenticate in my web-application using REST Webservice. I want to divide my application into two sections: a public section, where everyone could see the content - without login a private section,…
0
votes
1 answer

not able to authenticate with LexikJWTAuthenticationBundle on Symfony 3.4

In my Symfony (3.4.24) project with FOSUserBundle (2.0.2) I installed LexikJWTAuthenticationBundle (2.6.3). I installed and configured everything like said on the github page. When running the following suggested curl command curl -X POST -H…
0
votes
1 answer

auth token creation with LexikJWTAuthenticationBundle and Symfony 3.4

In my Symfony 3.4 Application I am trying to use LexikJWTAuthenticationBundle (v2.6.3). I installed and configured it and created the needed keys like said on the github…
user3440145
  • 793
  • 10
  • 34
0
votes
1 answer

How to validate a jwt token programmatically in Symfony?

Using LexikJWTAuthenticationBundle, it is possible to validate a passed token within a controller? p.s. I am aware that I can do $this->getUser() that returns the User if the user was authenticated and null otherwise. But that is not what I'm…
Niket Pathak
  • 6,323
  • 1
  • 39
  • 51
0
votes
1 answer

how to implements auth with username or email

I implemented the lexik jwt bundle for symfony 2.8 in my application, and I am trying to use it with a user login or email, but I have not been able to do it in any way. The bundle works correctly, but I have not been able to configure it to be able…
kmilo93sd
  • 791
  • 1
  • 15
  • 35
0
votes
2 answers

How to add Login to swagger UI with API PLATFORM (symfony 4)?

I installed & configured LexikJWTAuthenticationBundle, it works fine but I've got a small problem. I have include the Authorization button for put the JWT token, the problem is the only way I can have my token is to use this commands: curl -X POST…
PierreD
  • 860
  • 1
  • 14
  • 30