Category: jwt

Symfony 4 "code": 401, "message": "Invalid credentials." jwt authentication error

I’m trying to make a jwt authentication with Symfony 4 I configured my project as follow // security.yaml security: encoders: AppEntityUser: algorithm: auto # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers providers: # used to reload user from session & other features (e.g. switch_user) app_user_provider: entity:…

lexik JWT error invalid token while decoding token

I’ve made an authentication system with LexikJWTBundle, below are my security.yml, my service.yml and my config.yml security: encoders: FOSUserBundleModelUserInterface: bcrypt providers: fos_userbundle: id: fos_user.user_provider.username role_hierarchy: ROLE_ADMIN: ROLE_USER ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH] firewalls: login: pattern: ^/api/login stateless: true anonymous: true provider: fos_userbundle…

hi everyone , i actually have a problem Unable to find the controller for path "/api/login_check". The route is wrongly configured.]

Unable to find the controller for path “/api/login_check”. The route is wrongly configure***d. ***security: encoders: FOSUserBundleModelUserInterface: bcrypt role_hierarchy: ROLE_ADMIN: ROLE_USER ROLE_SUPER_ADMIN: ROLE_ADMIN # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers providers: fos_userbundle: id: fos_user.user_provider.username firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false login: pattern: ^/api/login stateless: true anonymous:…