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

feat: add support for PresentationDefinition by value #72

Merged
merged 11 commits into from
Jun 11, 2024

Conversation

nanderstabel
Copy link
Collaborator

Description of change

This change adds support for PresentationDefinition by value. This means when producing an OID4VP Authorization Request one can supply the necessary PresentationDefinition by value instead of supplying the presentation_definition_id.

Links to any relevant issues

Fixes #65

How the change has been tested

Added the following test cases to test_authorization_requests_endpoint:

    #[case::with_presentation_definition_by_value(true)]
    #[case::with_presentation_definition_id(false)]

Split the existing POST authorization_request request in the Postman collection into:

  • siopv2_authorization_requests
  • oid4vp_authorization_requests_with_presentation_definition
  • oid4vp_authorization_requests_with_presentation_definition_id

Definition of Done checklist

Add an x to the boxes that are relevant to your changes.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@nanderstabel nanderstabel added the Added A new feature that requires a minor release. label Jun 5, 2024
@nanderstabel nanderstabel requested a review from daniel-mader June 5, 2024 20:35
@nanderstabel nanderstabel self-assigned this Jun 5, 2024
@nanderstabel nanderstabel changed the base branch from dev to feat/jit-polling June 5, 2024 20:36
Base automatically changed from feat/jit-polling to dev June 10, 2024 12:54
@nanderstabel nanderstabel merged commit 7ac769e into dev Jun 11, 2024
1 check passed
@nanderstabel nanderstabel deleted the feat/presentation-definition-by-value branch June 11, 2024 08:20
berkes added a commit to educredentials/ssi-agent that referenced this pull request Jun 26, 2024
* upstream/dev: (23 commits)
  feat: add `issuance-config.yml` file, deprecate `/v0/configurations/credential_configurations` endpoint (impierce#91)
  chore: revert api version to `v0` (impierce#88)
  chore: improve Dockerfile and docker functionality  (impierce#89)
  feat: add support for multiple credential formats (impierce#85)
  fix: move dockerignore because it won't be respected otherwise (impierce#84)
  feat: add `/v1/configurations/credential_configurations` endpoint (impierce#83)
  feat: add Metadata `config.yml` file (impierce#82)
  chore: add tracing to `agent_event_publisher_http` (impierce#80)
  chore: use `domain-linkage` (no `-fetch`) feature in `identity_credential` (impierce#79)
  feat: create and serve `Domain Linkage Credential` (impierce#77)
  docs: list available events (impierce#78)
  feat: produce and serve `did:web` DID documents (impierce#31)
  feat: add support for `PresentationDefinition` by value (impierce#72)
  feat: use polling strategy for JIT credentials (impierce#71)
  ci: switch from manual triggers to pushes to `dev` (impierce#76)
  ci: use dedicated `arm64` runner (impierce#74)
  feat: add `offer_id` to all `OfferEvent` events (impierce#69)
  feat: enable `CorsLayer` (permissive) based on env variable (impierce#66)
  fix: add image `tags` in `merge` job (impierce#63)
  fix: add `state` to `AuthorizationResponseVerified` events (impierce#60)
  ...
Copy link

🎉 This PR is included in version 1.0.0-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version 1.0.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Added A new feature that requires a minor release. released on @alpha released on @beta
Projects
Development

Successfully merging this pull request may close these issues.

Add option for providing Presentation Definition by value
2 participants