Skip to content

Commit

Permalink
Fix validate jwt essential logic
Browse files Browse the repository at this point in the history
  • Loading branch information
coopfeathy committed Apr 6, 2022
1 parent 0eacd2a commit 109f4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authlib/jose/rfc7519/claims.py
Expand Up @@ -53,7 +53,7 @@ def __getattr__(self, key):

def _validate_essential_claims(self):
for k in self.options:
if self.options[k].get('essential') and k not in self:
if self.options[k].get('essential') and not self.get(k):
raise MissingClaimError(k)

def _validate_claim_value(self, claim_name):
Expand Down

0 comments on commit 109f4e0

Please sign in to comment.