When we create a presentation as JWT using api/presentations/iatp?asJwt=true and api/presentations?asJwt=true, the generated JWT token has an invalid kid header value
Here kid is just the did of the issuer without any specific key ID.
Here it should be did:web:3bdf-203-129-213-107.ngrok-free.app:BPNL000000000000#1b4c2d5b-479b-4a19-834a-fecd42c3d60b as kid
Expected Behavior
Value of kid value must contain issuer#keyId
Steps To Reproduce
Create Wallet
Create an STS token
Create presentation as JWT using api/presentations/iatp?asJwt=true POST API
Verify kid value of JWT
Create presentation as JWT using api/presentations?asJwt=true POST API
Verify kid value of JWT
For IATP, it can be fixed in MIW application
For VP as JWT, the SSI lib version 0.0.18 does not support creating/signing JWT with keyId, we need to upgrade SSI lib version first.
Current Behavior
When we create a presentation as JWT using
api/presentations/iatp?asJwt=true
andapi/presentations?asJwt=true
, the generated JWT token has an invalidkid
header valueie:
Did document:
The header of JWT:
Here kid is just the did of the issuer without any specific key ID.
Here it should be
did:web:3bdf-203-129-213-107.ngrok-free.app:BPNL000000000000#1b4c2d5b-479b-4a19-834a-fecd42c3d60b
as kidExpected Behavior
Value of kid value must contain
issuer#keyId
Steps To Reproduce
api/presentations/iatp?asJwt=true
POST APIkid
value of JWTapi/presentations?asJwt=true
POST APIkid
value of JWTFor IATP, it can be fixed in MIW application For VP as JWT, the SSI lib version
0.0.18
does not support creating/signing JWT with keyId, we need to upgrade SSI lib version first.We can plan this task once we after merging https://github.com/eclipse-tractusx/managed-identity-wallet/pull/284
Related to https://github.com/eclipse-tractusx/managed-identity-wallet/issues/303