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

fix: did exchange multiuse invites respond in kind #2850

Merged

Conversation

dbluhm
Copy link
Contributor

@dbluhm dbluhm commented Mar 21, 2024

Fixes: #2817

DID Exchange was responding incorrectly to requests, sending unqualified DIDs with a did_rotate~attach (which is nonsensical). This fixes it to only send a did_rotate~attach when the DID associated with the connection is a qualified DID. Additionally, this change also ensures that the webhook for the new connection request will only be emitted after the request has been attached to the connection record. Without this, a race condition can occur for controllers that try to accept the request before ACA-Py finishes storing the request.

As a side note, I left a todo wondering out loud about whether the webhook for the newly created connection record (the one that gets generated from a multi-use connection record) should happen at all.

@dbluhm dbluhm requested review from swcurran and ianco March 21, 2024 17:15
DID Exchange was responding incorrectly to requests, sending unqualified
DIDs with a did_rotate~attach (which is nonsensical). This fixes it to
only send a did_rotate~attach when the DID associated with the
connection is a qualified DID. Additionally, this change also ensures
that the webhook for the new connection request will only be emitted
after the request has been attached to the connection record. Without
this, a race condition can occur for controllers that try to accept the
request before ACA-Py finishes storing the request.

Signed-off-by: Daniel Bluhm <[email protected]>
@dbluhm dbluhm force-pushed the fix/did-exchange-multiuse-invites branch from 69ea92c to 4dd8952 Compare March 21, 2024 17:17
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@swcurran swcurran merged commit df721c4 into openwallet-foundation:main Mar 22, 2024
8 checks passed
@dbluhm dbluhm deleted the fix/did-exchange-multiuse-invites branch March 22, 2024 15:09
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.

did:peer respond-in-kind behavior not working for multiuse OOB+DIDExchange
2 participants