JWT auth accepts alg none after library update
we upgraded a python service from PyJWT 2.7 to 2.8 and suddenly jwt.decode(token, secret, algorithms=['HS256']) started raising InvalidAlgorithmError: The specified alg value is not allowed on tokens that used to work. but worse, a token with alg: none seems to pass on one endpoint. what changed in 2.8?
4 replies