impierce / openid4vc

Rust implementation of the OpenID4VC standards. The library will offer implementations for SIOPv2, OpenID4VP and OpenID4VCI.
https://www.impierce.com
Apache License 2.0
28 stars 3 forks source link

feat: add support for using multiple DID methods #70

Closed nanderstabel closed 5 months ago

nanderstabel commented 5 months ago

Description of change

This change adds the functionality of using multiple different DID methods through one single Subject.

Links to any relevant issues

https://github.com/impierce/identity-wallet/issues/94

How the change has been tested

Added the new MultiDidMethodSubject struct to tests/siopv2/implicit.rs and added #[rstest::rstest] to test_implicit_flow. This way test_implicit_flow is tested twice, once for did:key and once for did:test.

Definition of Done checklist

Add an x to the boxes that are relevant to your changes.