Questions tagged [lexikjwtauthbundle]

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

221 questions
0
votes
0 answers

Why Symfony Lexik Bundle not extracting JWT Token from cookie?

I implement a Symfony Backend with Authentication via the Lexik Bundle. Everything is working as expected. If I send a request to my /authentication_token endpoint I get a token and refresh token. With this token I am able to access protected…
Jan Wolfram
  • 145
  • 8
0
votes
1 answer

Symfony JWT Bundle responding with JWT Token not found

I using API platform and the EasyAdminBundle as a backoffice in my application. For authentication, I use 2 different entities: BackofficeUser and AppUser. The BackofficeUser gets access to the backoffice, the AppUser is the "frontend" user. To…
Anton
  • 81
  • 1
  • 8
0
votes
1 answer

JWT cookie not set after login

Given following firewall setup: api: provider: app_user_provider pattern: ^/api stateless: true entry_point: jwt login_throttling: max_attempts: 5 …
Twisted1919
  • 2,430
  • 1
  • 19
  • 30
0
votes
1 answer

Symfony API Platform : "Unable to create a signed JWT from the given configuration." during tests

I made a test login function in a test file for authentication that extends ApiTestCase: class AuthenticationTest extends ApiTestCase { public function testLogin(): void { $client = self::createClient(); $container = self::getContainer(); …
Stov
  • 29
  • 5
0
votes
0 answers

Extending JWT Authenticator

By default, the bundle installed at /api/login_check requires a login and password. I need to add extra validation to this route(secret message). How can I supplement the logic of the initial receipt of the JWT token? I looked at all the files of…
0
votes
1 answer

How to restrict json_login route with only POST method?

I use lexik JWT to secure my api and i can login with it. But the login route works with get and post request when i test with postman. I want to restrict with POST only. To do so i tried to add - { path: ^/auth/login_check, roles: PUBLIC_ACCESS,…
Floxblah
  • 152
  • 9
0
votes
1 answer

Lexik JWT how to get encoded JWT token string

I want to log the issed and encoded JWT token into the database. I am using my JWTlogger, which is initiated by the event JWTcreated. It works fine, I just do not know how to get the encoded jwt string. I know storing it in the DB is not a great…
Casso
  • 139
  • 6
0
votes
1 answer

SF4: multi authenticators with default authenticator

I hope that it will be clear. I have a very old application that was upgraded to SF4.4 some time ago and all time is maintained and developed. Unfortunately has a lot of old code. I have to create a firewall that will be supported an old…
viko
  • 491
  • 6
  • 23
0
votes
0 answers

Ways of overriding the behavior of the lexik/jwt-authentication-bundle to allow n number of public keys from an external source

Some background: We have many applications, each with their own auth provider and public / private keypairs and their own key rotation. When a new application is spun up or rotates its keys the public key is persisted elsewhere in a key store for…
0
votes
0 answers

Use HWIOAUTHBundle with LexikJWT in a api-platform project

I havn't no issue to build an api with api-platform and generate token with LexikJwt and refresh with gedinet bundle. It's easy (thanks a lot, it's a great doc). I use Symfony 6.1 and try to integrate HWIOAUTH Bundle 2.0 (beta). My use case : Use…
0
votes
1 answer

Change default username field in LexikJWTAuthenticationBundle

I want to update my symfony 2.8 applcation to version 5.4. I am using fos rest bundle for API as well as jwt auth bundle for authentication with token. My issue is that retrieving the token requires the _username field on version 2 and username on…
oracle972
  • 77
  • 10
0
votes
0 answers

API Platform V3 : Using JWT & Graphql

I try to use JWT and Graphql in API Platform V3 but i have all the time 403 response when i add security "is_granted('ROLE_USER')" on Entity. I search the good configuration for the security.yaml Now i have : security: …
0
votes
1 answer

JWT Authentification invalid Credentials with the token

I am new to Symfony and jwt Authentication. I tried to set up an access to api platform resources with a jwt token. I followed the doc https://symfony.com/bundles/LexikJWTAuthenticationBundle/current/index.html to set up the token. My problem comes…
0
votes
1 answer

Firebase Authenticator JWT with Symfony API Platform

I have a Flutter client which uses firebase for user account creation. The user can publish tickets which arrives on a web administration panel built with Symfony 6 and API Platform. So I need 2 authenticators : 1 original Symfony Authenticator for…
0
votes
1 answer

how can i build the authentication using symfony 6 and raeact js?

In my App i don t need a registration feature so i added a user in the database manually ,Actually I tried with the LexiJWTAuthenticationBundle i followed the documentation but unfortunately when I use the cURL to send a request i get the…