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

Connection JSON format for REST using CLIENTID and ClientSecret

DG1811
New Contributor III
New Contributor III

Hi Team,

We are integrating an application using the REST connector. The application team has given us the clientid and clientsecret , and that need to be passed in the http headers for access to the API. 

Please provide us with a sample create account json, which we can use and also please let us know how we can call the details in the other json too. Will the $access_token work ?

 

Thanks

9 REPLIES 9

rushikeshvartak
All-Star
All-Star


Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]



⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️


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

Hi @rushikeshvartak ,
Please find the update below. 

DG1811_0-1726668538603.png

Please find the curl too.

DG1811_1-1726668657700.png

 

Define id pwd in connection json and use in provisioning jsons

https://forums.saviynt.com/t5/saviynt-knowledge-base/how-to-mask-password-in-rest-connector-json-by-...


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

Hi @rushikeshvartak ,

Can you please share the format for it please. I mean how can i update the clientid and client secret in the connection json. 

Thanks

{
"authentications": {
"acctAuth": {
"authType": "Basic",
"url": "<URL>",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {},
"httpContentType": "text/html",
"properties": {
"userName": "<<USERNAME>>/token",
"password": "<<PASSWORD>>"
},
"expiryError": "ExpiredAuthenticationToken",
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed"
],
"timeOutError": "Read timed out",
"clientid": "xxxxxxxx",

"clientsecret": "xxxxxxxx",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Basic",
"accessToken": "Basic <<TOKEN>>",
"apiRateLimitConfig": {
"retryAfterCalls": 100,
"retryWaitSeconds": 60
}
}
}
}

 

Use in import json as below ${connection.clientid} ${connection.clientsecret}


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

hI @rushikeshvartak ,
We are not using basic, as we do not have any username and password. We are using Oauth2. Also where fo you want us to pass the ${connection.clientid} ${connection.clientsecret}, in the json right?

Thanks

THanks

YOu have to add below two line irrespective of auth

"clientid": "xxxxxxxx",

"clientsecret": "xxxxxxxx",


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

Hi @rushikeshvartak ,
Okay so i will add the fields in and in the import json and other json will update as below.

DG1811_0-1726669965995.png

Please correct me is anything wrong.

Thanks

use ${connecton.clientid} instead  of ${connecton.client_id}

underscore have issue avoid it 


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