-
Notifications
You must be signed in to change notification settings - Fork 23
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
MOSIP fixes #75
Closed
Closed
MOSIP fixes #75
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
221f9a3
SPHEREON-1157: include presentationSubmission in auth response, inclu…
sanderPostma 6285f12
SPHEREON-1157: verifiedIdToken can be null
sanderPostma 5d75581
SPHEREON-1157: prettier
sanderPostma 625de09
SPHEREON-1157: requestObject can be undefined. (At least in tests)
sanderPostma e133e96
SPHEREON-1157: removed rogue paste
sanderPostma 6bae0d4
SPHEREON-1157: responseOpts.presentationExchange can be undefined
sanderPostma 66358b3
SPHEREON-1157: responseOpts.presentationExchange can be undefined
sanderPostma e16d20b
SPHEREON-1157: deleted rogue paste
sanderPostma a026323
SPHEREON-1157: responseOpts.presentationExchange can be undefined
sanderPostma b74c350
SPHEREON-1157: presentationSubmission optional
sanderPostma 142c25b
SPHEREON-1157: response_uri support
sanderPostma 27ad7ef
v0.6.0-unstable.10
sanderPostma ffe4f96
Merge branch 'develop' into fix/SPHEREON-1157_MOSIP-demo-fixes
sanderPostma e28f000
SPHEREON-1157: remove unnecessary code
sanderPostma 9426648
SPHEREON-1157: remove unnecessary code
sanderPostma File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong! If the above hasVpToken is true, there needs to be a submission. So either the logic to determine the hasVpToken is wrong, or something else is happening. This PR is wrong for sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found the submission in authorizationResponsePayload.presentation_submission not in presentationExchange. So this needs to be fixed elsewhere then.
So that that makes this PR is not to merge, just for diagnostics. I will revert the change in my branch as soon as presentationSubmission appears in presentationExchange
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No you are likely simply misunderstanding how it works. Presentation Exchange is a service that provides the submission, but only when a vp_token is needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have found the problem, in the SSI SDK version I am using with RSA support, presentationSubmission in OPSession is not loaded yet.
But this line still has to be in opts
It's asserted in assertValidVerifiablePresentations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No that line should not be in opts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please reread from the top. Whenever a vp_token is requested by the RP a PE definition needs to be present. Then we require the PresentationExchange service to be present. That one can create the Presentation Submission using the definition from the RP and the VCs provided to it.
There is no situation where there is no submission or an empty submission when a vp_token is requested and thus a PE definition being present.
That is literally why those guards are in place
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see now it has the ... before responseOpts.presentationExchange so it should be in opts already. So the problem was my OPSession which was from before October 13th and I patched before it up by getting it from elsewhere.
I reverted that code