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

Presentation during issuance. #772

Merged
merged 1 commit into from
Nov 7, 2024
Merged

Presentation during issuance. #772

merged 1 commit into from
Nov 7, 2024

Conversation

sorotokin
Copy link
Contributor

Implemented draft spec for presentation during issuance that adds an option for the issuing authority to request openid4vp credential presentation as evidence. This significantly improves user experience as there is no need to switch to the browser and then back to the wallet.

In our implementation we send EvidenceRequests for both openid4vp presentation and web-based evidence collection. Wallet determines if there is actually a valid credential that can be used and only offers user to do presentation during issuance if an appropriate credential is found.

Manually tested the scenarios of having and not having an appropriate PID in the wallet as well as accepting or not accepting in-wallet PID presentation.

Only narrow path for OpenId4VP presentation is implemented: PID in mdoc format. OpenId4VP code should be factored out in a separate library that can be used in the wallet, verifier and OpenId4VCI issuer.

@sorotokin sorotokin requested a review from kdeus November 6, 2024 16:51
Copy link
Contributor

@kdeus kdeus left a comment

Choose a reason for hiding this comment

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

Looks like a fair amount of copied code from the existing openid4vp presentation. We're planning on refactoring that into a single implementation soon, right?

Signed-off-by: Peter Sorotokin <[email protected]>
@sorotokin sorotokin force-pushed the openid4vci-pid-auth branch from c35b3d2 to a248e6a Compare November 7, 2024 07:20
@sorotokin sorotokin requested a review from kdeus November 7, 2024 07:20
@sorotokin
Copy link
Contributor Author

We discussed factoring out openid4vp code with David. We need to create identity-openid library and move all the related code there.

@kdeus kdeus closed this Nov 7, 2024
@kdeus kdeus reopened this Nov 7, 2024
@kdeus kdeus merged commit cd4c01f into main Nov 7, 2024
6 checks passed
@sorotokin sorotokin deleted the openid4vci-pid-auth branch November 7, 2024 20:26
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