When testing walletKit on main branches, I noticed that issuing a PID or MDL stopped working.
Tested with EUDI demo issuer: https://issuer.eudiw.dev/oidc
Issue was that wrong key was provided based on issuer response:
{
"credential_endpoint": "https://issuer.eudiw.dev/oidc/credential",
"credential_issuer": "https://issuer.eudiw.dev/oidc",
"credentials_supported": {
"eu.europa.ec.eudiw.mdl_jwt_vc_json": {
"credential_definition": {
"credentialSubject": {
"administrative_number": {
"display": [
{
"locale": "en",
"name": "An audit control number assigned by the issuing authority"
}
],
"mandatory": false
}
Now app tries to decode credential_configurations_supported first. If this fails it will try to decode also credentials_supported
Type of change
Please delete options that are not relevant.
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
[x] Issuing credential flow works after this fix (opens web form for PID or MDL)
Checklist:
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the readme
[x] My changes generate no new warnings
[ ] I have added unit tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
Description of change
When testing walletKit on main branches, I noticed that issuing a PID or MDL stopped working.
Tested with EUDI demo issuer:
https://issuer.eudiw.dev/oidc
Issue was that wrong key was provided based on issuer response:
Now app tries to decode credential_configurations_supported first. If this fails it will try to decode also credentials_supported
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: