Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/18/2024 05:51 AM
Hi. We have an inhouse API being developed where they are saying there will be no authentication endpoint since the API will only be exposed internally. Is it possible to establish a rest connection that doesn't have a connectionJson? Or where can I find info on how that would work if the target app just doesnt have any kind of authentication endpoint available? Or is that a requirement for a connection to work?
Solved! Go to Solution.
09/18/2024 05:58 AM - edited 09/18/2024 05:59 AM
09/18/2024 06:03 AM
I see, so essentially just pass some other kind of api call and remove access token related configs. That essentially just causes connection json to do nothing but make that dummy call and do nothing with data returned. Then whatever json config needs to be run is processed after?
09/18/2024 06:23 AM
You can create a dummy connection JSON with dummy data. Because connection JSON in mandatory to create connection. With dummy data in it , it wont generate any token.
In import JSONs and in provisioning JSONs, remove the "Authorization": "${access_token}" line
09/20/2024 06:16 AM
I would like to have a testConnectionParam in the connectionJSON to validate connectivity but using the below config and some variations I am unable to get any response showing in the logs. As usual, the test connection button for REST always says successful.
{
"authentications": {
"acctAuth": {
"url": "https://URL.com/SHPCustom/API/UserSecurity/GetAllUsers/?PageOffset=1&PageSizeLimit=1",
"httpMethod": "GET",
"httpParams": {},
"httpHeaders": {},
"httpContentType": "application/json",
"properties": {},
"expiryError": "Couldn't authenticate you",
"timeOutError": "Read timed out",
"errorPath": "ResponseMessage",
"maxRefreshTryCount": 5,"successResponse": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
},
"testConnectionParams": {
"http": {
"url": "https://URL.com/SHPCustom/API/UserSecurity/GetAllUsers/?PageOffset=1&PageSizeLimit=1",
"httpHeaders": {},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"successResponse": {
"statusCode": [
200,
201,
202,
203,
204,
205
]
},
"successResponsePath": "ResponseMessage",
"errorPath": "ResponseMessage"
}
}
}
}
Not sure what I am missing here because the logs arent showing any meaningful errors. What the call looks like in postman