Questions tagged [lexikjwtauthbundle]

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

221 questions
0
votes
2 answers

Lexik JWT Authentification with Sf4 : Uncaught Exception: Unable to find the controller for path "/login_check"

I followed the Sf4 sandbox to install JWT Auth, but still I have this response : 2019-01-03T18:39:27+01:00 [info] Matched route "login_check". 2019-01-03T18:39:27+01:00 [info] Populated the TokenStorage with an anonymous…
adrilef
  • 45
  • 4
0
votes
2 answers

Create JWT authentication based on ip address

I am creating JWT token by using username and password, it will get the JWT token as expected, But my one of the use case will create JWT token based on specific IP address. Let me know anyone has ideas to resolve this one?
Elangovan
  • 3,469
  • 4
  • 31
  • 38
0
votes
0 answers

Login check with Basic Auth instead of plain text body

I just checked the Getting Started guide on LexikJWTAuthenticationBundle and appears you can only use a POST request with username and password in plain-text JSON to obtain a token. curl -X POST -H "Content-Type: application/json"…
dumazy
  • 13,857
  • 12
  • 66
  • 113
0
votes
0 answers

symfony 4 json_login JWT 401 Bad credentials

Getting 401 Bad credential Error in lexik jwt token when I request: curl -X POST -H "Content-Type: application/json" http://localhost:8080/api/login_check -d '{"username":"arnav@test.com","password":"123"}' Firewall settings : security: …
0
votes
1 answer

Unable to sign JWT Token programmatically with LexikBundle

I'm implementing Lexik JWT library with Sf 4.1. In my case I have to create a JWT Token when needed for several applications through custom authenticator. I have followed the lexik documentation, however I am facing an issue for couple of hours for…
Cyril Z.
  • 89
  • 1
  • 4
  • 14
0
votes
1 answer

Symfony: How to save each successful login to database table

i am developing a symfony restful api with tools like FosRestBundle, FosUserBundle and Lexik JWT for api authentication. I need to save each successful login in my app. So i created a Login entity (user_id,loginDate) , but i don't know how to use it…
billy tzez
  • 155
  • 1
  • 2
  • 11
0
votes
2 answers

JWTRefreshTokenBundle, Class gesdinet.jwtrefreshtoken does not exist

I get refresh token but when I call jwt refresh path response is 500 (Class gesdinet.jwtrefreshtoken does not exist. (500 Internal Server Error)) composer.json `"require"` : { "php" : ">=7.1", "symfony/symfony" : "3.4.*", …
mcek
  • 480
  • 7
  • 17
0
votes
0 answers

Symfony 4 - api platform - jwt - Custom Operations and Controllers

I am working on a project using Symfony 4.1 - api platform -jwt I created a custom operation in the Entity // App\Entity /** * @ApiResource( * itemOperations={ * "get", * "put", * "delete", * "request"={ * "method"="POST", …
0
votes
1 answer

Attempted to load class "JWTUserFactory" from namespace "Lexik\Bundle\JWTAuthenticationBundle\DependencyInjection\Security\Factory"

I have the following error in production, I try to load the class "JWTUserFactory" from the namespace "Lexik\Bundle\JWTAuthenticationBundle\DependencyInjection\Security\Factory". Forgot a "use" declaration for another namespace? Although the same…
0
votes
1 answer

ionic 3 with JWT Authentication login Error

I built an API with symfony, and all is working fine in the browser, but when I try on my device (Android) I get an error 'Server error', is it a problem of compatibility I post my code, please Help! Login in provider : login(credentials:…
Yassine
  • 1
  • 1
0
votes
0 answers

LexikJWTAuthenticationBundle always get null user over token storage

I'm working with symfony at backend (api). The authentication process is handled by FosUserBundle, LexikJWTAuthenticationBundle and LdapTools... all works fine. The problem is when I'm about to get the Authenticated user in a controller or…
Juan I. Morales Pestana
  • 1,057
  • 1
  • 10
  • 34
0
votes
1 answer

Generate token Symfony flex with LexikJWTAuthenticationBundle 2.4

I just tested symfony flex with LexikJWTAuthenticationBundle2.4, I followed here Error is NotFoundHttpException Unable to find the controller for path "/login_check". The route is wrongly configured. do I have to create a controller? not sure! or…
Nirina-aj
  • 192
  • 1
  • 3
  • 18
0
votes
2 answers

authentication in symfony api with ldaptools+jwt+fosuser

In my api I'm trying to authenticate a user using LdapToolsBundle, FOSUserBundle and LexikJWTAuthenticationBundle. Doing things step by step and following the integration docs for fosuser and ldaptools and later the jwt docs I manage to acomplish…
Juan I. Morales Pestana
  • 1,057
  • 1
  • 10
  • 34
0
votes
3 answers

'openssl genrsa' doesn't work when I use AES

I have a problème when I try to generate a Ssh Key as requested in the instructions of this Symfony Bundle : LexikJWTAuthenticationBundle When I use this command : openssl genrsa -out config/jwt/private.pem -aes256 4096 The process doesn't finish,…
Mohamed 19
  • 7
  • 1
  • 9
0
votes
1 answer

Symfony4 + jwt-auth rescipe always return {"code":401,"message":"Bad credentials"}

I've a Symfony4 installation with few common bundles installed with Flex make jwt-auth annotation behat phpunit server I've this routing file: api_login_check: path: /api/login_check I've this configuration: security: encoders: …
sensorario
  • 20,262
  • 30
  • 97
  • 159