When using the hash handlebars helper to generate an authentication header or URI parameter, the Celigo platform provides and populates a set of hashOptions
fields you can use to create the signature. hashOptions
is a JSON object that contains fields that are commonly used to create authentication signatures (such as the request body and the URI). The following table lists all available fields:
Note
For demonstration purposes, the examples provided use the following full URL:
https://www.celigo-test.com/this/is/a/test?username=Integrator&domain=IO
Field name |
Description |
---|---|
|
Path to parameters sent in the request header. |
|
The HTTP request body, in string format. |
|
Path to parameters sent in request body. |
|
The HTTP request method (verb). For example, PUT, POST, GET, etc. |
|
The contents of the |
|
The base URI used in the request. In this example, the value is:
|
|
The relative URI used in the request. In this example, the value is:
|
|
The URL parameters used in the request. In this example, the value is:
|
|
Path to parameters sent in request URL. |
|
The full URI used in the request. In this example, the value is:
|
* Not available with authentication URL parameters.
To create an HASH-SHA256 digest from the full URI in base64 format:
{{{hash "sha256" hashOptions.http.encrypted.hashKey "base64" hashOptions.URI}}}
To create an HASH-SHA256 digest from the request body in hexadecimal format:
{{{hash "sha256" hashOptions.http.encrypted.hashKey "hex" hashOptions.body}}}
Comments
Please sign in to leave a comment.