github lepture/authlib v0.15.4
Version 0.15.4

latest releases: v1.3.2, v1.3.1, v1.3.0...
3 years ago

Security fix when JWT claims is None.

For example, JWT payload has iss=None:

{
  "iss": None,
  ...
}

But we need to decode it with claims:

claims_options = {
  'iss': {'essential': True, 'values': ['required']}
}
jwt.decode(token, key, claims_options=claims_options)

It didn't raise an error before this fix.

Don't miss a new authlib release

NewReleases is sending notifications on new releases.