Skip to content

Commit

Permalink
chore: jwt and sd-jwt cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Feb 6, 2025
1 parent 27a6554 commit a7a0f0c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 6 additions & 2 deletions pyeudiw/jwt/jws_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
from pyeudiw.jwk.exceptions import KidError
from pyeudiw.jwk.jwks import find_jwk_by_kid, find_jwk_by_thumbprint

from pyeudiw.jwt.exceptions import (JWEEncryptionError, JWSSigningError,
JWSVerificationError)
from pyeudiw.jwt.exceptions import (
JWEEncryptionError,
JWSSigningError,
JWSVerificationError,
LifetimeException
)
from pyeudiw.jwt.helper import (JWHelperInterface, find_self_contained_key,
serialize_payload,
validate_jwt_timestamps_claims)
Expand Down
10 changes: 7 additions & 3 deletions pyeudiw/sd_jwt/sd_jwt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import logging

from hashlib import sha256
from typing import Any, Callable, TypeVar

Expand All @@ -11,10 +12,13 @@
from pyeudiw.jwt.utils import base64_urldecode, base64_urlencode
from pyeudiw.jwt.verification import verify_jws_with_key
from pyeudiw.sd_jwt.common import SDJWTCommon

from pyeudiw.sd_jwt.exceptions import InvalidKeyBinding, UnsupportedSdAlg
from pyeudiw.sd_jwt.schema import (VerifierChallenge, is_sd_jwt_format,
is_sd_jwt_kb_format)
from pyeudiw.tools.utils import iat_now
from pyeudiw.sd_jwt.schema import (
VerifierChallenge,
is_sd_jwt_format,
is_sd_jwt_kb_format
)

from . import DEFAULT_SD_ALG, DIGEST_ALG_KEY, SD_DIGESTS_KEY, SD_LIST_PREFIX

Expand Down

0 comments on commit a7a0f0c

Please sign in to comment.