Questions tagged [lexikjwtauthbundle]

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

221 questions
0
votes
0 answers

Symfony ClassNotFoundException - JwtAuthenticator

Im working on a existing project, which uses symfony to provide web services. I'm new to Symfony technology but I have good experience in Laravel, the project has an issue in JwtAuthenticator.…
Vijay Wilson
  • 516
  • 7
  • 21
0
votes
1 answer

Symfony JWTToken change fields for generate

I use Symfony 3.3.10 with "lexik/jwt-authentication-bundle": "~2.0", and for user_identity_field I use email lexik_jwt_authentication: private_key_path: '%jwt_private_key_path%' public_key_path: '%jwt_public_key_path%' pass_phrase: …
shuba.ivan
  • 3,824
  • 8
  • 49
  • 121
0
votes
1 answer

Get token for an existing user with LexikJWTauthenticationBundle Symfony 3.3

I'm a noob in unit testing and I want to test my API. So, LexikJWTAuthenticationBundle works fine when I try to access in /login_check path and the CRUL command line. But when I try to do the TestCase I get this error : 1)…
0
votes
1 answer

Symfony - lexik jwt authentication - token not found

I am using lexik_jwt_authentication on my backend with simfony 3.3. My problem is that the response when I try to do the login is: { "code": 401, "message": "JWT Token not found" } Also if I navigate my site the bundle told me to provide a…
Jon Doe
  • 389
  • 1
  • 3
  • 10
0
votes
2 answers

Angular5 with Symfony3 Authorization

I have Apache server and Postman to check if api url is working correctly and i have strange behaviour, meaning when i call with correct credentials http://localhost/xxx/web/app_dev.php/api/login_check on Postman, LexikJwtBundle is returning token…
Viszman
  • 1,378
  • 1
  • 17
  • 47
0
votes
1 answer

JWTRefreshTokenBundle change user_identity_field

I use jwt token for auth and I had to change user_identity_field to email. And after that when I try call /api/token/refresh I have 401 status code. Because for refresh token entity in username property saved username data from user my config…
shuba.ivan
  • 3,824
  • 8
  • 49
  • 121
0
votes
1 answer

Lexik Bundle Symfony 3

I use LexikAuthentication Bundle. When I try to make the UI using ajax for login_check, I get back the token in localStorage but when I try to login to my UI, I get 401 not authorization. This is my login_check: function authenticate(e) { …
0
votes
2 answers

csrf_protection - no extension able to load

I'm new to API-platform, trying to do JWT Authentification using FOSUserBundle. I followed step by step https://symfony.com/doc/master/bundles/FOSUserBundle/index.html tutorial and after Step 5 when I try re-run step 1 I get err: There is no…
0
votes
0 answers

Symfony lexikjwtauthbundle authenticate($token) EROOR

I work on a Rest API with symphony and everything worked for me great in local, but after I deployed my project I can't login anymore and "Bad credentials" error keep showing up. After comparing the behavior of the local and the deployed app I…
0
votes
2 answers

FOSUserBundle + LexixJWTAuthBundle login via email

I have to have jwt auth for my REST API. Now everything works fine but when I'm trying to get token via pair email/password I get an error: Bad credentials. When I use username/password everything is ok. My security.yml security: encoders: …
0
votes
1 answer

Nelmio Cors , Api how to set for angular2 request's with token headers

I'm working on a project which has an API built with symfony2 as backend and front end app in Angular2. After logging and getting token when I try to sent get request with token header to my backend this issue happend A Token was not found in the…
0
votes
1 answer

The `lexik_jwt_authentication.on_jwt_created` is not present in Symfony's profiler

I've added this listener acme_api.event.jwt_created_listener: class: AppBundle\EventListener\JWTCreatedListener tags: - { name: kernel.event_listener, event: lexik_jwt_authentication.on_jwt_created, method: onJWTCreated } but the…
sensorario
  • 20,262
  • 30
  • 97
  • 159
0
votes
1 answer

Force jwt token expiration at midnight

I have a Symfony application that uses lexik/LexikJWTAuthenticationBundle. Can I set configuration to force expiration after midnight? How can I force expiration date at midnight of current day?
sensorario
  • 20,262
  • 30
  • 97
  • 159
0
votes
0 answers

error 401 when I send requests

I use symfony in backend and angular js 1.6 in frontend for authentification but now I have bug when I send requests I have bug status 401 (Invalid credentials) .. I use jwtauthentificationBundle for generate token .. I add token in localStorage and…
devit2017
  • 297
  • 2
  • 5
  • 14
0
votes
2 answers

Symfony 3 api authentication with FR3DLdapBundle, Jwt and FosUserBundle

I'm trying to auth API and BackOffice users of a Symfony 3 app with a combination of 3 bundles : FR3DLdapBundle, LexikJwtAuthBundle and fosUserBundle. the first step I trying to do is to integrate LexicJwtBundle with fosUserBundle as a provider but…
547n00n
  • 1,356
  • 6
  • 30
  • 55