Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

REST connector using apikey

JB
Regular Contributor
Regular Contributor

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

1 REPLY 1

sagars
Saviynt Employee
Saviynt Employee

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