Skip to content

Can't access JWS payload if signature is unverified #262

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

You must be logged in to vote

@smacz42 the API is purposefully built to prevent using it without signing and verification steps, so that it is hard to make errors that would be disastrous in security applications. The None algorithm is disabled by default, for example. And as you can see no payload is released without verification.

That said I can't possibly understand what is the point of constructing a JWT if you do not want to sign it. What properties are you looking at? What gain do you have from using this formatting if you do not use it for what it is intended to do?

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@smacz42
Comment options

Answer selected by smacz42
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants