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

OID4VCI Integration #29

Merged
merged 16 commits into from
Sep 5, 2024
Merged

Conversation

theosirian
Copy link
Contributor

@theosirian theosirian commented Aug 22, 2024

Depends on spruceid/oid4vci-rs#18.

Bindings compilation status:

  • iOS
  • Android

Copy link
Member

@sbihel sbihel left a comment

Choose a reason for hiding this comment

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

The CI is failing because of async (which I've fixed in #25)

There's more code than I was expecting but it all looks good. Maybe in the future we'll realise it doesn't need to be too flexible.

I won't approve until the CI is passing and it's all tested end-to-end

Cargo.toml Outdated Show resolved Hide resolved
src/oid4vci/http_client.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@cobward cobward left a comment

Choose a reason for hiding this comment

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

I would also like to see some consideration for the VdcCollection and key management. How does a credential get stored in the VdcCollection, and how is that associated with a keypair that can be accessed by credential presentation code.


#[uniffi::export]
pub async fn oid4vci_initiate_with_offer(
credential_offer: String,
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the format of this string? The code implies that it's JSON, but a credential offer is parsed from a URI. Could we just pass the URI here instead?

@theosirian theosirian force-pushed the skit-457-integrate-oid4vci-into-sprucekit branch 2 times, most recently from 4da58d6 to d22a9c1 Compare August 29, 2024 15:06
@Ryanmtate
Copy link
Contributor

@sbihel @cobward

After syncing with @theosirian, we're going to try to merge this as-is before rebasing on the open draft PRs.

We'll upstream the changes for the KeyManager and the common types after this is merged.

Would it be okay to get this final review today for merge?

@theosirian theosirian force-pushed the skit-457-integrate-oid4vci-into-sprucekit branch from ead50a5 to 113b59d Compare September 3, 2024 15:51
Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
…pper object export; Add async http client trait

Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
… interface

Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
@theosirian theosirian force-pushed the skit-457-integrate-oid4vci-into-sprucekit branch from 5a6d0f0 to a93d62e Compare September 5, 2024 11:23
Signed-off-by: Tiago Nascimento <tiago.nascimento@spruceid.com>
@theosirian theosirian merged commit fa2ea3a into main Sep 5, 2024
3 checks passed
@theosirian theosirian deleted the skit-457-integrate-oid4vci-into-sprucekit branch September 5, 2024 14:25
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.

4 participants