Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/18/2024 07:03 AM
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
09/18/2024 07:06 AM
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.‼️‼️⚠️
09/18/2024 07:11 AM
09/18/2024 07:13 AM
Define id pwd in connection json and use in provisioning jsons
09/18/2024 07:17 AM
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
09/18/2024 07:22 AM
{
"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}
09/18/2024 07:26 AM - edited 09/18/2024 07:27 AM
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
09/18/2024 07:26 AM
YOu have to add below two line irrespective of auth
"clientid": "xxxxxxxx",
"clientsecret": "xxxxxxxx",
09/18/2024 07:33 AM
Hi @rushikeshvartak ,
Okay so i will add the fields in and in the import json and other json will update as below.
Please correct me is anything wrong.
Thanks
09/18/2024 07:35 AM
use ${connecton.clientid} instead of ${connecton.client_id}
underscore have issue avoid it