Click HERE to see how Saviynt Intelligence is transforming the industry. |
11/11/2022 01:11 AM
Hello All,
Anyone have a sample for REST Connector connection Json with authentication using apikey ?
It will be helpful since I couldn't find any sample from FD using just apikey.
Best Regards,
Jithin B
11/16/2022 07:38 PM
Hello @JB ,
Please find some sample JSON below
{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"httpHeaders": {
"contentType": "application/json"
},
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed"
],
"url": "<api url>",
"httpMethod": "POST",
"httpContentType": "application/json",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"authHeaderName": "apikey",
"accessToken": "XXXXXXXXX",
"retryFailureStatusCode": []
}
}
}
{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"httpHeaders": {
"contentType": "application/json"
},
"authError": [
"Invalid credentials",
"AuthenticationFailed"
],
"url": "https://cloud.tenable.com",
"httpMethod": "POST",
"httpContentType": "application/json",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"authHeaderName": "X-ApiKeys",
"accessToken": "accessKey=53XXXXXX;secretKey=814fXXXX",
"httpParams": "[object Object]",
"retryFailuRESTatusCode": []
}
}
}
Regards,
Sagar Srikantaiah