Skip to content

Commit

Permalink
fix: CI removed imports from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Jul 23, 2023
1 parent c75e12a commit 423efcd
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion pyeudiw/tests/satosa/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from pyeudiw.oauth2.dpop import DPoPIssuer
from pyeudiw.satosa.backend import OpenID4VPBackend
from pyeudiw.jwt import JWSHelper
from pyeudiw.tests.oauth2.test_dpop import PRIVATE_JWK, WALLET_INSTANCE_ATTESTATION
from pyeudiw.jwk import JWK
from pyeudiw.tools.utils import iat_now

from satosa.context import Context
from satosa.internal import InternalData
Expand Down Expand Up @@ -267,6 +268,42 @@
}


PRIVATE_JWK = JWK()
PUBLIC_JWK = PRIVATE_JWK.public_key


WALLET_INSTANCE_ATTESTATION = {
"iss": "https://wallet-provider.example.org",
"sub": "vbeXJksM45xphtANnCiG6mCyuU4jfGNzopGuKvogg9c",
"type": "WalletInstanceAttestation",
"policy_uri": "https://wallet-provider.example.org/privacy_policy",
"tos_uri": "https://wallet-provider.example.org/info_policy",
"logo_uri": "https://wallet-provider.example.org/logo.svg",
"asc": "https://wallet-provider.example.org/LoA/basic",
"cnf":
{
"jwk": PUBLIC_JWK
},
"authorization_endpoint": "eudiw:",
"response_types_supported": [
"vp_token"
],
"vp_formats_supported": {
"jwt_vp_json": {
"alg_values_supported": ["ES256"]
},
"jwt_vc_json": {
"alg_values_supported": ["ES256"]
}
},
"request_object_signing_alg_values_supported": [
"ES256"
],
"presentation_definition_uri_supported": False,
"iat": iat_now(),
"exp": iat_now() + 1024
}

class TestOpenID4VPBackend:
@pytest.fixture(autouse=True)
def create_backend(self):
Expand Down

0 comments on commit 423efcd

Please sign in to comment.