Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/19/2023 12:07 PM - edited 05/19/2023 01:18 PM
Hi Expert,
We are integrating workplace meta which is rest based application, we have to pass a fix access token, app_id and app_secret in the connection json and pre-request_script, in return it will generate an app_secret_proof which will be valid only for 5 min and this is working fine in postman, and to achieve this I thought of using BasicwithHMAC as authType, but it is throwing error, I am not sure where should i pass the pre-request-script in the json, I am attaching here the connection json and pre-request-script, I appreciate your help on this.
{
"authentications": {
"acctAuth": {
"authType": "BasicWithHmac",
"url": "xxxxxx",
"httpMethod": "POST",
"properties": {
"IKEY": "xxxx3",
"SKEY": "xxxx"
},
"retryFailureStatusCode": [
401,
500,
400
],
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed",
"Authentication_MissingOrMalformed",
"Authentication_ExpiredToken"
],
"errorPath": "code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "Bearer abcd"
}
}
}
05/25/2023 01:13 PM
I am not sure if using a script is supported but let me check and confirm.
05/25/2023 03:30 PM
You can add script in Connection Json . Does make proof1 as call1 in connectionjson
05/25/2023 10:01 PM
Only the DUO and VeraCode applications are currently supported for HMAC authentication. The REST connector currently does not appear to support the aforementioned use-case. Please post this request in our Ideas portal so that we can consider it as an improvement.