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 API with no authentication endpoint

jralexander137
Regular Contributor
Regular Contributor

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?

4 REPLIES 4

rushikeshvartak
All-Star
All-Star

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

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? 

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

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

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 

jralexander137_0-1726838209569.png