diff --git a/README.md b/README.md index 5bc04e14..f59be0e5 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,24 @@ Install using github: `pip install git+https://github.com/italia/eudi-wallet-it-python` +## Usage + +TBD. Here a section that points to the documentation of each single package and some common example about their usage for some specific tasks. + +| Name | Description | +| :--- | --- | +| __jwk__ | link to the API documentation [](). | +| __jwt__ | link to the API documentation [](). | +| __tools.qrcode__ | QRCodes creation. | +| __oauth2.dpop__ | link to the API documentation [](). | +| __federation__ | link to the API documentation [](). | +| __trust__ | link to the API documentation [](). | +| __satosa.backend__ | link to the API documentation [](). | +| __openid4vp__ | link to the API documentation [](). | +| __presentation_exchange__ | link to the API documentation [](). | +| __sd_jwt__ | link to the API documentation [](). | + + ## Example project The example project is a docker-compose that runs a demo composed by the following component: @@ -61,6 +79,7 @@ The example project is a docker-compose that runs a demo composed by the followi Please read [this README](example/README.md) to get a fully working demo setup. + ## SatoSa configuration [SaToSa](https://github.com/IdentityPython/SATOSA) is a general purpose IAM @@ -70,9 +89,6 @@ backend to enable the OpenID4VP protocol. Please read [README-SATOSA.md](README-SATOSA.md) for details. -## API - -TBD. Here a section that points to the documentation of each single package and some common example about their usage for some specific tasks. ## Contribute diff --git a/pyeudiw/federation/statements.py b/pyeudiw/federation/statements.py index 59ef3d1d..45a2fb02 100644 --- a/pyeudiw/federation/statements.py +++ b/pyeudiw/federation/statements.py @@ -378,7 +378,7 @@ def validate_descendant_statement(self, jwt: str) -> bool: if header.get("kid") not in self.kids: raise UnknownKid( f"{self.header.get('kid')} not found in {self.jwks}") - + # verify signature jwsh = JWSHelper(self.jwks[self.kids.index(header["kid"])]) payload = jwsh.verify(jwt) diff --git a/pyeudiw/tools/utils.py b/pyeudiw/tools/utils.py index e68d636e..fcd9d1a2 100644 --- a/pyeudiw/tools/utils.py +++ b/pyeudiw/tools/utils.py @@ -62,4 +62,3 @@ def get_jwks(httpc_params: dict, metadata: dict, federation_jwks: list = []) -> def random_token(n=254): return token_hex(n) -