Skip to content

Verification fails with custom header parameter sigT in JWT #806

Closed Answered by panva
rober12 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rober12

I have tried to use the critHandlers option to handle this custom header, but the error persists.

There isn't (and never was in the past) such named option in this or previous jose versions.

The library should allow custom critical headers like sigT to be recognized and accepted when declared in the crit array, and the verification should succeed if the signature and key are valid.

You can acknowledge "recognized" crit extensions using the crit verify option. This takes an object where its property names are the recognized crit header parameter names and its values are booleans - true when the Header Parameter MUST be integrity protected, false when it's irrelevant.

Since …

Replies: 1 comment 1 reply

Comment options

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

Answer selected by rober12
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