pyjwt
pyjwt copied to clipboard
JSON Web Token implementation in Python
when decoding JWT tokens issued by keycloak I have come across x and y coordinate lengths 65 and 66 respectively and when this happens pyjwt throws this error. ``` raise...
It seems a bit unfair to file this as a "bug," when really what's going on is that the Python community is trying to figure out what a "typed" Python...
`Algorithm.compute_hash_digest` is defined as a method which inspects the object to see that it has the requisite attributes, `hash_alg`. If `hash_alg` is not set, then the method raises a NotImplementedError....
I'm trying to add support for KMS while keeping the header `{"alg": "RS256"}`. We found a workaround but would like some opinion on how to make it easier to follow....
I recently had a situation where I was passing ```algorithm``` instead of ```algorithms``` to ```jwt.decode()```. Due to the ```**kwargs``` eating the ```algorithm``` parameter and the decode method looking at the...
encode is returning a bytes object but the annotation suggests that it returns a str. Trying to send the token over the network ends up ruining the token. The fix...
Support exposure of hash algorithm digest to handle OIDC at_hash, potentially other spec extensions
#296 was closed with the suggestion that rather than special-case support for OIDC, PyJWT could support pluggable verifiers which handle additional, specialized claim validation behavior. If there's a general market...
Attempting to verify a token with the alg header set to 'none' always fails. This is because the implementation of the NoneAlgorithm 'verify' unconditionally returns False. ``` def verify(self, msg,...
Handling 'ImmatureSignatureError' for issued_at time when it is a future time epoch. ``` if iat > (now + leeway): raise ImmatureSignatureError("The token is not yet valid (iat)") ``` When the...
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account. - `python3 -sBm...