main commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-16 16:30:25 +09:00
parent 91c7e04474
commit 537e7b363f
1146 changed files with 45926 additions and 77196 deletions

View File

@@ -1,10 +1,6 @@
import binascii
import json
try:
from collections.abc import Iterable, Mapping
except ImportError:
from collections import Mapping, Iterable
from collections.abc import Iterable, Mapping
from jose import jwk
from jose.backends.base import Key
@@ -219,6 +215,7 @@ def _sig_matches_keys(keys, signing_input, signature, alg):
def _get_keys(key):
if isinstance(key, Key):
return (key,)
@@ -251,6 +248,7 @@ def _get_keys(key):
def _verify_signature(signing_input, header, signature, key="", algorithms=None):
alg = header.get("alg")
if not alg:
raise JWSError("No algorithm was specified in the JWS header.")