Skip to content

Commit 436e3f9

Browse files
committed
Fix validate jwt essential logic
ref: #445
1 parent 1c7a2c4 commit 436e3f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

authlib/jose/rfc7519/claims.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __getattr__(self, key):
5353

5454
def _validate_essential_claims(self):
5555
for k in self.options:
56-
if self.options[k].get('essential') and k not in self:
56+
if self.options[k].get('essential') and not self.get(k):
5757
raise MissingClaimError(k)
5858

5959
def _validate_claim_value(self, claim_name):

0 commit comments

Comments
 (0)