Skip to content

Commit

Permalink
Don't validate subject claim for compatibility with PyJWT>=2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
grayver committed Dec 26, 2024
1 parent 9911c85 commit d479e3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rest_framework_simplejwt/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def decode(self, token: Token, verify: bool = True) -> Dict[str, Any]:
options={
"verify_aud": self.audience is not None,
"verify_signature": verify,
"verify_sub": False,
},
)
except InvalidAlgorithmError as ex:
Expand Down

0 comments on commit d479e3b

Please sign in to comment.