Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next release #63

Merged
merged 58 commits into from
Aug 9, 2023
Merged

next release #63

merged 58 commits into from
Aug 9, 2023

Conversation

peppelinux
Copy link
Member

No description provided.

peppelinux and others added 18 commits July 30, 2023 12:35
fix: JWK and JWT encryption ops and kid resolution
Storage settings, interface and operations
* refactor: switch from qrcode to pyqrcode

* fix: qrcode settings

* fix: remove sample data from library examples

---------

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>
* feature: initial code for db engine

* fix: fixed tests and minor fix

---------

Co-authored-by: Pasquale De Rose <pasquale.de.rose@it.ey.com>
* feature: initial code for db engine

* fix: fixed tests and minor fix

* fix: moved nonce and state

* fix: implemented logger critical errors

* feature: added method set and RetrieveStatus enum

* fix: fixed cache

* feat: implemented cache methods in DBEngine

* fix: fixed mongo cache tests

* Update pyeudiw/storage/db_engine.py

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>

* Update pyeudiw/storage/db_engine.py

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>

* Update pyeudiw/storage/db_engine.py

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>

* Update pyeudiw/storage/db_engine.py

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>

* fix: minor bug fix

* fix: fixed bugs on storage side of DBEngine

* test: added tests for the storage side of DBEngine

* fix: setted state as nullable parameter

* fix: added nullable state

---------

Co-authored-by: Pasquale De Rose <pasquale.de.rose@it.ey.com>
Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>
* feat: add wallet instance attestation schema and wallet instance request schema

* feat: add vp token schema

* chore: linting

* fix: optional state in ResponseSchema

* refactor: moved sd-jwt validation

* feat: alg validation parametrized with context

* fix: regex for base64url

* chore: linting
* feat: implemented property is_valid

* test: added test for property is_valid

* fix: fixed import

* feat: created gen_static_trustchain

* feat: added ESSchema validation and initial implementation of

* fix: changed signature algorithm

* fix: changed signature alg

* fix: removed print

* fix: fixed imports

* feat: specialized errors

---------

Co-authored-by: Pasquale De Rose <pasquale.de.rose@it.ey.com>
@peppelinux peppelinux marked this pull request as draft August 2, 2023 23:59
peppelinux and others added 11 commits August 3, 2023 02:04
* chore: linting

* feat: add html linter

* fix: dependencies
* removed DS_Store file

* feat: added Qrcode page

* remover DS_Store file

* feat: updated the docker compose file to mount folders with custom plugin and theme settings

* fix: mounting single file

* feat: welcome page with user info

* feat: added NameIDFormat uri in settings page

* feat: enabled signMetadata and added attributeConsuming Service with required attributes

* feat: saves to DB the value of spidCode of the connected user

* feat: updated Readme file

* fix: #75 (comment)

* fix: #75 (comment)

* fix: #75 (comment)

* Update example/README.md

Co-authored-by: Riccardo Iaconelli <riccardo@kde.org>

---------

Co-authored-by: Alessio Murru <alessio.murru@it.ey.com>
Co-authored-by: Riccardo Iaconelli <riccardo@kde.org>
pderose and others added 28 commits August 4, 2023 10:23
* removed DS_Store file

* feat: added Qrcode page

* remover DS_Store file

* fix: #57 moved static element in subfolder

* feat: qrcode page encapsulated in iframe + modifications according to request #53 (comment)

* fix: it wallet endpoint

* feat: Added polling scripts for scenarios 200, 201, 500 and 404

* fix: changed IT Wallet icon

* fix: changed path for css and js resources (need to add '--check-static ./static/' when uwsgi fo IAM Proxy is started)

---------

Co-authored-by: Alessio Murru <alessio.murru@it.ey.com>
* fix: Optional type annotations requires default value `None`

* feat: add entity configuration schema

* chore: linting

* feat: add entity configuration validation with optional context

* fix: default algorithms

* chore: linting

* refactor: refactor schema

* refactor: refactor wallet instance and vp token schemas

`x5c` and `trust_chain` in WalletInstanceAttestationHeader are now Optional.

* feat: add sd-jwt schema

* fix: check `vp_token` is in a JWT format

Response's `vp_token` field is a JWS containing a single (or an array) of Verifiable Presentation(s) in the form of JWS.

* feat: check `vp` is in a SD-JWT format

VPToken's `vp` field is the digital credential in SD-JWT format.

* chore: isort

* refactor: refactor response schema under schemas

* fix: cnf validation

* fix: syntax

* fix: attestation request `typ`

* fix: update import

* fix: input descriptor format schema

* chore: linting

* tests: test schema
feat: OpenID Connect Federation 1.0
* feature: initial code for db engine

* fix: fixed tests and minor fix

* fix: moved nonce and state

* fix: implemented logger critical errors

* feature: added method set and RetrieveStatus enum

* fix: fixed cache

* feat: implemented cache methods in DBEngine

* fix: fixed mongo cache tests

* Update pyeudiw/storage/db_engine.py

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>

* Update pyeudiw/storage/db_engine.py

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>

* Update pyeudiw/storage/db_engine.py

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>

* Update pyeudiw/storage/db_engine.py

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>

* fix: minor bug fix

* fix: fixed bugs on storage side of DBEngine

* test: added tests for the storage side of DBEngine

* fix: setted state as nullable parameter

* fix: added nullable state

* fix: fixed import

* feat: Integrated storage

* fix: fixed test for backend

---------

Co-authored-by: Pasquale De Rose <pasquale.de.rose@it.ey.com>
Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>
* fix: added named arguments

* fix: added exception handling for db_engine calls

---------

Co-authored-by: Pasquale De Rose <pasquale.de.rose@it.ey.com>
Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>
* feature: initial code for db engine

* fix: fixed tests and minor fix

* fix: moved nonce and state

* fix: implemented logger critical errors

* feature: added method set and RetrieveStatus enum

* fix: fixed cache

* feat: implemented cache methods in DBEngine

* fix: fixed mongo cache tests

* Update pyeudiw/storage/db_engine.py

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>

* Update pyeudiw/storage/db_engine.py

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>

* Update pyeudiw/storage/db_engine.py

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>

* Update pyeudiw/storage/db_engine.py

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>

* fix: minor bug fix

* fix: fixed bugs on storage side of DBEngine

* test: added tests for the storage side of DBEngine

* fix: setted state as nullable parameter

* fix: added nullable state

* fix: fixed import

* feat: Integrated storage

* fix: fixed test for backend

* fix: added named arguments

* fix: added exception handling for db_engine calls

* feat: added NoNonceInVPToken and InvalidVPToken exceptions

* fix: fixed check_vp_token to handle vp_token correctly

* fix: fixed _adapt_keys and verify_sd_jwt to correctly handle issuer_jwk

* fix: _handle_vp refactoring

* fix: removed old config and renamed sd_jwt in config

* fix: added logging message for db errors

* fix: retrieve key by kid

* fix: check schema with pydantic

* fix: minor fix

* fix: fixed error messages

* fix: error messages

---------

Co-authored-by: Pasquale De Rose <pasquale.de.rose@it.ey.com>
Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>
* feat: add session_id as state and create state_endpoint

* fix: request with session_id as param

* fix: session_id in uri path

* fix: http status code and use url_params instead of path

* feat: bind session_id and state in db

- fix: sessions are now created in pre_request_endpoint

* fix: logging calls

* fix: logging calls

* fix: improve error message

* fix: usage of handle_error

* fix: apply #92 (comment)

* fix: apply #92 (comment)

* fix: update http status code #92 (comment)

* style: remove *

* fix: add return handle_error
* fix: fixed identation

* feat: added get_chain property

* feat: added helper properties plus annotated types

* feat: added InvalidChainError exception

* feat: added heper get_entityID

* feat: initial implementation of chain storage

* feat: initial implementation of TrustEvaluationHelper

* fix: removed property decorator and refactoring

* fix: refactoring

* feat: implemented chain's methods

* fix: fixed tests

* feat: initial implementation of trust evaluation

* feat: added property entity_id

* fix: renamed entityID

* fix: removed property

* fix: minor fix

* feat: added NotTrustedFederationError exception

* fix: renamed find_chain in get_trust_attestation

* fix: has_chain become has_trust_attestation

* fix: add_chain becomes add_trust_attestation

* fix: update_chain becomes update_trust_attestation

* fix: db_chains_collection becomes db_attestations_collection

* fix: changed chains in attestations

* fix: changed chains in attestations

* fix: refactored line 380

* Update pyeudiw/federation/trust_chain_validator.py

Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>

* fix: typo

* fix: fixed unused variables

* fix: removed ReplicaError

* Apply suggestions from code review

---------

Co-authored-by: Pasquale De Rose <pasquale.de.rose@it.ey.com>
Co-authored-by: Giuseppe De Marco <giuseppe.demarco@teamdigitale.governo.it>
* ci: html linting

* refactor: align linting script with CI
@peppelinux peppelinux marked this pull request as ready for review August 9, 2023 22:11
@peppelinux peppelinux merged commit ff551cf into main Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants