-
Notifications
You must be signed in to change notification settings - Fork 207
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: allow reconnections to a multi-use invitation. #1395
base: main
Are you sure you want to change the base?
fix: allow reconnections to a multi-use invitation. #1395
Conversation
Signed-off-by: Patrick Kenyon <[email protected]>
AFAIK the purpose of multi-use invitations is for an inviter to publish a single invitation that can be received by multiple invitees. This does not mean that an invitee (a.k.a. Is that the use case you are referring to? |
What's the specific use case here? In general we need the invitation id to be unique so we can use that for querying the records. So even if this may work in this case, it's not designed for it. I think you could either remove the old connection, or query for a connection using the existing invitation id. Would that work? |
@genaris do you know if it's safe to remove this check? |
Ah you already commented, my GH was outdated |
I could not find a limitation from RFCs/protocol point of view to process the same invitation more than once, so probably it can be safe to remove this check and refactor |
The #1 best use case that comes to mind is if an invitation is printed on poster or sign for a physical event or where you provide a single invitation to the end user. Additionally, if that issuer does not support connection reuse then there may need to be multiple connections created for workflows that get repeated multiple times. Indicio's immediate-term use case requires us to hard-code the invitation with the application at build time, so it can't be dynamic/single-use and the user needs to be able to run through the workflow multiple times. |
@TheTreek Did you found any solution for this? |
I think with some work we can fix the issue that this PR is trying to solve. But I do think it needs to be a bit more complex. ids for messages are meant to be unique, and thus I would rather say we reuse the same out of band record (becuase it's the same oob invitation). We should check though if the invitation from the oob record is the same as the invitation that is parsed the second time (so we don't have two different invitations that have the same id). |
@TimoGlastra we are able to solve this by adding some conditions
|
We were not able to connect to a multi-use invitation more than once. Removing this check will allow us to do so.