Skip to content

'Header' not set, after importing raw token #356

Answered by simo5
FotiadisM asked this question in Q&A
Discussion options

You must be logged in to vote

That is intentional, a token can't be used until it is properly verified.

Additionally you would completely defeat the purpose of verifying the signed JWT, if you download a key that is being communicated to you with the JWT, opening a huge security hole in your processes.
Any attacker would be able to publish the public key part of a pair they control, and then start minting JWTs that your tool would verify as valid.

At the very least you would have to create an allow-list of allowed public keys, which means still knowing all keys, so you may as well store the actual pubic key.

In any case, should you still wish to create a completely insecure system along the way you describe (maybe you…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by simo5
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
Converted from issue

This discussion was converted from issue #355 on April 19, 2024 13:34.