Closed marinaioannou closed 7 months ago
@dzarras Please prepare a fix for this & in addition check whether it affects verifier-endpoint
@marinaioannou Thanks for reporting this. Good catch!
@babisRoutis / @vafeini Shouldn't we also be similarly setting the apv
JWE header claim when doing both signature and encryption as well?
Shouldn't this be:
return JWEObject(
JWEHeader.Builder(jweAlgorithm, encryptionMethod)
.agreementPartyVInfo(Base64URL.encode(data.nonce))
.build(),
Payload(signedJwt),
).apply { encrypt(jweEncrypter) }
Documentation: According to the ISO 18013-7:
The problem: Currently, the
apv
has the value ofnonce
Authorization Request parameter from the Authorization Request Object and not the base64url-encoded-with-no-padding value of it.Proposed resolution: Please consider replacing in the line :
Base64URL(data.nonce)
withBase64URL.encode(data.nonce)