Skip to main content

payload-verification-digest-encoding-requires-hmac-algorithm

Overview

This rule belongs to the apimatic-codegen-validation ruleset and states that:

The digest encoding configuration (hex, base64, or base64url) can only be used with HMAC-based algorithms (HMAC-SHA256 or HMAC-SHA512). The current algorithm doesn't support digest encoding options.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDigest encoding requires HMAC algorithm type.
CodeAPIMATICCODEGEN_V552
TypeValidation
Rule SystemSemantic
Broad CategoryWebhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic code generation codegen sdks portal docs validation apimatic payload verification digest encoding algorithm HMAC configuration

Suggested Fixes

  • Change the algorithm to 'HMAC-SHA256' or 'HMAC-SHA512'.
  • Remove the digest encoding configuration if not using HMAC algorithms.
  • Ensure algorithm is set before configuring digest encoding.

For More Information