Skip to content

Security: token_handler not being triggered in firewall #51316

Answered by MatTheCat
eman1986 asked this question in Q&A
Discussion options

You must be logged in to vote

Your JwtHandler is not an authenticator: its responsibility is to return a UserBadge from an access token.

Symfony’s AccessTokenAuthenticator is the authenticator so it’s expected it gets called, but in your case the HeaderAccessTokenExtractor fails to get the access token from the request, so your JwtHandler is not called.

Check how your access token is supposed to be extracted from the request, and configure token_extractors accordingly.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@eman1986
Comment options

@eman1986
Comment options

Answer selected by eman1986
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants