Skip to content

Instantly share code, notes, and snippets.

@Selleray
Last active February 2, 2020 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Selleray/4e9853ba3ea10337d50e50608618e223 to your computer and use it in GitHub Desktop.
Save Selleray/4e9853ba3ea10337d50e50608618e223 to your computer and use it in GitHub Desktop.
Creation of Modulr HMAC Auth variables
<ee:transform doc:name="Transform Message" doc:id="8e4d9a64-8614-486b-bce3-21b2d2246804" >
<ee:message />
<ee:variables >
<ee:set-variable variableName="authentication" ><![CDATA[%dw 2.0
output application/java
---
{
dateHeader: now() as String {format: "EEE',' dd MMM yyyy HH:mm:ss 'GMT'"},
apiKey: ${modulr.apiKey},
apiSecret:${modulr.apiSecret},
nonceId:uuid()
}]]></ee:set-variable>
</ee:variables>
</ee:transform>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment