LexikJWTAuthenticationBundle icon indicating copy to clipboard operation
LexikJWTAuthenticationBundle copied to clipboard

Sentry and LexikJWT are creating fake issues

Open ghostlexly opened this issue 2 years ago • 1 comments

Hello,

I have Sentry and LexikJWT and each time a user try to login with this payload:

{"email":"","password":""}

It's creates a Sentry issue with this handler:

Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\BadRequestHttpException: "The key "email" must be a string." at /var/www/html/vendor/symfony/security-http/Authenticator/JsonLoginAuthenticator.php line 164

How can i prevent this ?

ghostlexly avatar Nov 03 '22 09:11 ghostlexly

Looks like you should setup check_path property to any fake page to prevent using the JsonLoginAuthenticator image https://symfony.com/doc/current/reference/configuration/security.html#check-path

dmitryuk avatar Dec 22 '22 06:12 dmitryuk