JWT Token not found #1023
salamisodikiolawale
started this conversation in
General
Replies: 1 comment 18 replies
-
Hi, just replace your article:
pattern: ^/api/articles
methods: [POST, PUT, PATCH, DELETE]
stateless: true
jwt: ~
api:
pattern: ^/api
stateless: true
jwt: ~ |
Beta Was this translation helpful? Give feedback.
18 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I don't really understand what is going on. I have been encountering this error for 3 days.
I get my token but when I put a firewall rule on a route and I send the request with the obtained token I get the error 401 Token not found.
This is my security file :
`security:
enable_authenticator_manager: true
# https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords
password_hashers:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
App\Entity\User:
algorithm: auto
when@test:
security:
password_hashers:
# By default, password hashers are resource intensive and take time. This is
# important to generate secure password hashes. In tests however, secure hashes
# are not important, waste resources and increase test times. The following
# reduces the work factor to the lowest possible values.
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
algorithm: auto
cost: 4 # Lowest possible value for bcrypt
time_cost: 3 # Lowest possible value for argon
memory_cost: 10 # Lowest possible value for argon
`
My route file:
api_login_check: path: /api/login_check
Beta Was this translation helpful? Give feedback.
All reactions