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(rest): added outofband offer to credentialController #70

Merged
merged 7 commits into from
Nov 7, 2021

Conversation

janrtvld
Copy link
Contributor

@janrtvld janrtvld commented Nov 5, 2021

#69

Signed-off-by: janrtvld jan@animo.id

Signed-off-by: janrtvld <jan@animo.id>
@janrtvld janrtvld requested a review from a team as a code owner November 5, 2021 14:26
Copy link
Contributor

@TimoGlastra TimoGlastra left a comment

Choose a reason for hiding this comment

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

Nice, some comments

janrtvld added 3 commits November 5, 2021 15:47
Signed-off-by: janrtvld <jan@animo.id>
Signed-off-by: janrtvld <jan@animo.id>
Signed-off-by: janrtvld <jan@animo.id>

return {
message: `${this.agent.config.endpoints[0]}/?d_m=${JsonEncoder.toBase64URL(
credential.offerMessage.toJSON({ useLegacyDidSovPrefix: this.agent.config.useLegacyDidSovPrefix })
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the legacy did sov prefix also supported for the proof endpoint?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added it to the out of band proof request too. Also cleaned up the code a little.

janrtvld added 3 commits November 5, 2021 20:54
Signed-off-by: janrtvld <jan@animo.id>
Signed-off-by: janrtvld <jan@animo.id>
@codecov-commenter
Copy link

codecov-commenter commented Nov 6, 2021

Codecov Report

Merging #70 (244e3b2) into main (5f9b1ae) will increase coverage by 0.40%.
The diff coverage is 95.08%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #70      +/-   ##
==========================================
+ Coverage   85.43%   85.83%   +0.40%     
==========================================
  Files          25       27       +2     
  Lines         453      466      +13     
  Branches       76       80       +4     
==========================================
+ Hits          387      400      +13     
  Misses         66       66              
Impacted Files Coverage Δ
...ckages/rest/src/schemas/CredentialOfferTemplate.ts 80.00% <80.00%> (ø)
...ages/rest/src/controllers/agent/AgentController.ts 100.00% <100.00%> (ø)
...rc/controllers/connections/ConnectionController.ts 79.66% <100.00%> (-0.34%) ⬇️
...rc/controllers/credentials/CredentialController.ts 81.92% <100.00%> (+1.40%) ⬆️
...ges/rest/src/controllers/proofs/ProofController.ts 81.01% <100.00%> (-0.24%) ⬇️
...ackages/rest/src/schemas/CredentialOfferRequest.ts 100.00% <100.00%> (+18.75%) ⬆️
...kages/rest/src/schemas/PresentationProofRequest.ts 100.00% <100.00%> (ø)
...kages/rest/src/schemas/ProofPresentationRequest.ts 100.00% <100.00%> (ø)
packages/rest/src/schemas/ProofProposalRequest.ts 90.90% <100.00%> (+0.90%) ⬆️
packages/rest/src/schemas/ProofRequestTemplate.ts 100.00% <100.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5f9b1ae...244e3b2. Read the comment docs.

@janrtvld
Copy link
Contributor Author

janrtvld commented Nov 7, 2021

@janrtvld somehow the integration tests for node 14.x are hanging. Already tried to re-run. Could it be because of changes to this PR?

Can't seem to find any issues. Also running with --detectOpenHandles brings up nothing.

@TimoGlastra
Copy link
Contributor

@janrtvld somehow the integration tests for node 14.x are hanging. Already tried to re-run. Could it be because of changes to this PR?

@TimoGlastra
Copy link
Contributor

Ok, trying again. Have you tried running in Node 14?

@TimoGlastra
Copy link
Contributor

It worked 🎉Let’s hope it doesn’t persist

@TimoGlastra TimoGlastra merged commit d514688 into openwallet-foundation:main Nov 7, 2021
@janrtvld janrtvld deleted the oobcredential branch November 24, 2021 15:22
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.

3 participants