Get Cause when Validation failed

Issue #131 invalid
Former user created an issue

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)

  1. Connect2id OSS

    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.

  2. Log in to comment