- changed status to invalid
Get Cause when Validation failed
Issue #131
invalid
Hi
By now the verify function only returns False when the Validation failed. Is it possible to get the Cause (invalid Signature, expired Token etc) ? This would be really useful for Debugging.
Comments (1)
-
- Log in to comment
The "verify" method of JWSObject only checks the cryptographic signature. That is, if you get a
false
this means that the signature is bad.If the JWS is a JWT, the verification of the claims (exp, iss, aud, etc) must be performed by the application code, as this is entirely application specific stuff.