Skip to content

"Bearer was not authenticated" message when the token format is invalid in the header #27231

Answered by blowdart
amura asked this question in General
Discussion options

You must be logged in to vote

If you're not sending the correct header format then the JWT middleware isn't going to pick up the token, in fact no authentication service is going to handle it, so there are notdetailed error messages to give, because nothing is doing anything with it. We can't say "Oh wrong format", because we don't know what the right formats are, given all the auth services stand alone, we just know nothing processed it. The lack of processing messages is probably the only clue here.

Replies: 1 comment 2 replies

Comment options

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

@blowdart
Comment options

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