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 additional formats for parsing and outputting Out Of Band Invitations #1281

Merged
merged 10 commits into from
Aug 22, 2024

Conversation

JamesKEbert
Copy link
Contributor

Adds the ability to parse from and output to additional formats for the OutOfBandReceiver:

  • JSON
  • Base64URL
  • URL

Additionally, adds parsing from the same formats to the OutOfBandSender, as new invites should always be created as Invitation or AriesMessage or with a builder. Consequently I've also removed the unused from_string() method from OutOfBandSender.

Adds tests for these methods (some repetition between the files, so I can see if I can consolidate if there's too much repeated during review).

Does not include behavior for handling shortened URLs. I will create a followup GH issue for this item.

Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
…ing test

Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
Signed-off-by: James Ebert <jamesebert.k@gmail.com>
gmulhearn
gmulhearn previously approved these changes Aug 18, 2024
Copy link
Contributor

@gmulhearn gmulhearn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just that one remaining comment

…y method

Signed-off-by: James Ebert <jamesebert.k@gmail.com>
@JamesKEbert JamesKEbert merged commit 6887dc2 into hyperledger:main Aug 22, 2024
22 checks passed
@JamesKEbert JamesKEbert deleted the feat/addInvitationFormats branch August 22, 2024 01:48
alberto-instnt pushed a commit to instnt-inc/instnt-aries-vcx that referenced this pull request Sep 10, 2024
…nvitations (hyperledger#1281)

* feat: added invitation parsing from json, base64url, and url

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

* feat: added invitation to json, base64url, and url

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

* feat: add tests, fix minor output issues

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

* feat: added additional formats to outofbandsender, added tests

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

* chore: fix formatting/clippy

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

* chore: fix clippy issue

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

* chore: adjust function/method names, added no invitation padding parsing test

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

* chore: fix dead code needed by testing

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

---------

Signed-off-by: James Ebert <jamesebert.k@gmail.com>
alberto-instnt pushed a commit to instnt-inc/instnt-aries-vcx that referenced this pull request Sep 10, 2024
…nvitations (hyperledger#1281)

* feat: added invitation parsing from json, base64url, and url

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

* feat: added invitation to json, base64url, and url

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

* feat: add tests, fix minor output issues

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

* feat: added additional formats to outofbandsender, added tests

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

* chore: fix formatting/clippy

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

* chore: fix clippy issue

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

* chore: adjust function/method names, added no invitation padding parsing test

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

* chore: fix dead code needed by testing

Signed-off-by: James Ebert <jamesebert.k@gmail.com>

---------

Signed-off-by: James Ebert <jamesebert.k@gmail.com>
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.

2 participants