The issue was found when testing the library against the Finnish EUDIWallet backend, which defines a scope "pid.vc+sd-jwt" in its credential issuer metadata. FormPost failed to percent-encode the '+' character and it did not convert the space character that was delimiting the scopes to '+' as it should in application/x-www-form-urlencoded.
Fix to the special character encoding and related improvements in PR #54.
The underlying utility class
FormPost
fails to encode special characters in the body correctly when using content typeapplication/x-www-form-urlencoded
according to https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.The issue was found when testing the library against the Finnish EUDIWallet backend, which defines a scope
"pid.vc+sd-jwt"
in its credential issuer metadata.FormPost
failed to percent-encode the'+'
character and it did not convert the space character that was delimiting the scopes to'+'
as it should inapplication/x-www-form-urlencoded
.Fix to the special character encoding and related improvements in PR #54.