fastapi-jwt icon indicating copy to clipboard operation
fastapi-jwt copied to clipboard

authlib.jose.errors.BadSignatureError: bad_signature

Open pipeline-failed opened this issue 1 year ago • 2 comments

when transferring an incorrect token, an error occurs that cannot be processed anywhere Example: I transferred the token and deleted the last character I received this exception: authlib.jose.errors.BadSignatureError: bad_signature:

pipeline-failed avatar Aug 08 '24 11:08 pipeline-failed

Hi everyone, had the same issue with an authlib backend. This exception isn't handled in lib code.

tyyrok avatar Nov 25 '24 11:11 tyyrok

AuthlibJWTBackend is not mapping all jose's exceptions to BackendException, so the error mapping to HTTPException done when auto_error=True is not happening.

HMaker avatar Jun 28 '25 04:06 HMaker