Skip to content

Commit

Permalink
feat: bootstrap Connection aggregate (#131)
Browse files Browse the repository at this point in the history
* WIP

* feat init agetn_holder

* feat: add `HolderState`

* feat: add Holder functionality to `agent_store` and `agent_api_rest`

* feat: add Holder functionality to Event Publisher

* feat: add `SendCredentialOffer` to `agent_verification`

* feat: add `/offers/send` issuance endpoint to `agent_api_rest`

* fix: remove incorrect Content Type

* feat: add `Status` enum

* feat: add REST API for Holder

* feat: add `AllOffersView`

* feat: add Holder views to `init.sql`

* fix: fix `OfferView` update

* feat: add credentials endpoint for Holder

* refactor: refactor Router

* test: refactor test framework

* refactor: deprecate `path` closure

* refactor: remove unused dependencies

* style: add clippy exception

* build: bump oid4vc dependencies

* refactor: move all `CustomQuery` logic to `agent_shared`

* fix: add Into<SubjectSyntaxType> for SupportedDidMethod

* fix: return 200 OK when list is empty

* refactor: clean up code

* fix: Fix error handling for the Offer aggregate

* fix: add error handling for to Offer aggregate

* refactor: apply clippy suggestion

* test: update Postman Collection

* feat: add Events to `config.rs`

* docs: add new Holder events  to `agent_event_publisher_http` documentation

* feat: init `agent_identity`

* style: use consistent nameing for `View` variables

* style: rename variables

* refactor: use `type` for `View`s to reduce code duplication

* refactor: use `Jwt` instead of `Value`

* feat: add error handling

* fix: remove `presentation_id` from route

* refactor: add error handling and comments

* refactor: remove unused dependencies

* build: remove unused dependencies

* feat: add `UnsupportedCredentialFormatError` error

* test: update Postman Collection

* feat: update `init.sql` file

* feat: add tests and error handling

* feat: add error handling

* test: add unit tests for `Service`, `Presentation` and received `Offer`

* feat: add `GET` method for `/v0/services` endpoint

* test: update Postman collection

* docs: add document, service and presentation events

* fix: remove unused import

* ci: add DS_Store to .gitignore file

* feat: add Document and Service to config.rs

* fix: update .env.example variables

* feat: make `/accept` endpoint respond with the Offer

* feat: add individual aggregate instance endpoints

* test: update Postman collection

* fix: add `all_authorization_requests` table

* test: update test

* feat: init identity `Connection` aggregate

* refactor: merge verification Connection into AuthorizationRequest aggregate

* feat: add `Connection` aggregate and corresponding endpoints

* feat: add `Connection` related endpoints to Postman collection

* fix: add `all_connections` table

* fix: undo openbadgesv3_credentials change

* feat: change `openid4vci/offers` from GET to POST

* test: add `services/:service_id` endpoints to Postman collection

* fix: change method from `get` to `post`

* feat: add public `/linked-verifiable-presentations` endpoint

* feat: add `offers_params` endpoint handler

* style: make requests human-readable

* test: update path of linked VP in test

* style: use human-readable names for requests

* fix: remove duplicate functions

* feat: add GET service by ID endpoint

* docs: add aggregate fields

* docs: add README file for `AuthorizationRequest` aggregate

* fix: remove duplicate request

* fix: change `credential_offer_endpoint` to camelCase

* fix: change request names

* feat: add optional `alias` field to `Connection` aggregate

* feat: add `Query Connection by Alias` request
  • Loading branch information
nanderstabel authored Nov 28, 2024
1 parent 7b03c43 commit 0d3a10d
Show file tree
Hide file tree
Showing 38 changed files with 1,090 additions and 429 deletions.
14 changes: 8 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ identity_credential = { version = "1.3", default-features = false, features = [
"presentation",
"domain-linkage",
] }
identity_did = { version = "1.3" }
identity_iota = { version = "1.3" }
identity_verification = { version = "1.3", default-features = false }
jsonwebtoken = "9.3"
Expand All @@ -53,7 +54,7 @@ serde_yaml = "0.9"
thiserror = "1.0"
tokio = { version = "1", features = ["full"] }
tower = { version = "0.4" }
tower-http = { version = "0.5", features = ["cors", "trace"] }
tower-http = { version = "0.6", features = ["cors", "trace"] }
tracing = { version = "0.1" }
tracing-subscriber = { version = "0.3", features = ["json", "env-filter"] }
tracing-test = { version = "0.2" }
Expand Down
2 changes: 2 additions & 0 deletions agent_api_rest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ axum-macros = "0.4"
did_manager.workspace = true
http-api-problem = "0.57"
hyper = { version = "1.2" }
identity_core.workspace = true
identity_credential.workspace = true
identity_did.workspace = true
oid4vc-core.workspace = true
oid4vci.workspace = true
oid4vp.workspace = true
Expand Down
Loading

0 comments on commit 0d3a10d

Please sign in to comment.