IDA - HMAC validation failure

Problem

In some deployment environment, such as centos7, it is noticed that demograpic authentication with UTF-8 data such as Arabic name, Arabic address fails with “HMAC validation failed” error.

Solution

The reason for this issue is the ID authentication service could have a different default encoding applied due to the JVM setup in that OS (it should be UTF-8), resulting in difference in encoding for the characters loaded from the request body and hence failure in HMAC validation. To fix this issue, add the below VM argument in the IDA application start command.

-Dfile.encoding="UTF-8"

It should be also noted that the authentication client application should use UTF-8 character encoding while constructing authentication request and HMAC value calculation for that.

Filter by label

There are no items with the selected labels at this time.