Skip to content

How to debug io.jwt.decode_verify when it failed to validate token #568

Discussion options

You must be logged in to vote

Hi there!

You should remove the wrapping "input" attribute from the input object, as that's only part of the payload when calling the OPA servers v1/data API.

Other than that it looks fine, but the token is AFAICS expired.

But io.jwt.decode_verify is hard to debug. I normally opt to go with doing verification and decoding in two separate steps instead, then use normal Rego rules to verify the claims I want.

Replies: 1 comment 2 replies

Comment options

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

@anderseknert
Comment options

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